diff options
author | Liam <towerofnix@gmail.com> | 2017-07-15 18:21:13 -0400 |
---|---|---|
committer | Liam <towerofnix@gmail.com> | 2017-07-15 18:21:13 -0400 |
commit | 6b6840973c120896c2d4f40bd29b1ac86f5973f6 (patch) | |
tree | 319089cb1c3f5cce536c8e1e096b8346a09bccba /src | |
parent | ced15bbbfad358db206e84f0a5ca101d32d504c5 (diff) |
Update local crawler to use Playlist 2.0 format
Diffstat (limited to 'src')
-rwxr-xr-x | src/crawl-local.js | 4 |
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 } }) |