« get me outta code hell

Update local crawler to use Playlist 2.0 format - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/crawl-local.js
diff options
context:
space:
mode:
authorLiam <towerofnix@gmail.com>2017-07-15 18:21:13 -0400
committerLiam <towerofnix@gmail.com>2017-07-15 18:21:13 -0400
commit6b6840973c120896c2d4f40bd29b1ac86f5973f6 (patch)
tree319089cb1c3f5cce536c8e1e096b8346a09bccba /src/crawl-local.js
parentced15bbbfad358db206e84f0a5ca101d32d504c5 (diff)
Update local crawler to use Playlist 2.0 format
Diffstat (limited to 'src/crawl-local.js')
-rwxr-xr-xsrc/crawl-local.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crawl-local.js b/src/crawl-local.js
index 4c510a1..cf5db87 100755
--- a/src/crawl-local.js
+++ b/src/crawl-local.js
@@ -20,11 +20,11 @@ function crawl(dirPath) {
       return stat(itemPath).then(stats => {
         if (stats.isDirectory()) {
           return crawl(itemPath).then(contents => {
-            const group = [item, contents]
+            const group = {name: item, items: contents}
             return group
           })
         } else if (stats.isFile()) {
-          const track = [item, itemPath]
+          const track = {name: item, downloaderArg: itemPath}
           return track
         }
       })