diff options
author | Florrie <towerofnix@gmail.com> | 2017-09-13 15:40:43 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-09-13 15:40:43 -0300 |
commit | 1ee5c19fb3c458c9f2198362f4d4a9229eb5b314 (patch) | |
tree | 5f240d436a4c7e6c45d0752e8c30f84b5cabc477 /src/playlist-utils.js | |
parent | 13a11233ea07155a8c491c82d6ab2873b2616bd4 (diff) |
Make indexer code actually index the playlist (via updatePlaylistFormat)
Diffstat (limited to 'src/playlist-utils.js')
-rw-r--r-- | src/playlist-utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/playlist-utils.js b/src/playlist-utils.js index 25660a1..2e6bbb9 100644 --- a/src/playlist-utils.js +++ b/src/playlist-utils.js @@ -6,7 +6,7 @@ const fs = require('fs') const { promisify } = require('util') const unlink = promisify(fs.unlink) -const parentSymbol = Symbol('parent') +const parentSymbol = Symbol('Parent group') function updatePlaylistFormat(playlist) { const defaultPlaylist = { @@ -357,7 +357,7 @@ if (require.main === module) { { console.log('- (root with name) should output a/b/c/Foo') - const playlist = updateGroupFormat( + const playlist = updatePlaylistFormat( {name: 'root', items: [ {name: 'a', items: [ {name: 'b', items: [ @@ -382,7 +382,7 @@ if (require.main === module) { { console.log('- (root without name) should output a/b/c/Foo') - const playlist = updateGroupFormat( + const playlist = updatePlaylistFormat( {items: [ {name: 'a', items: [ {name: 'b', items: [ @@ -407,7 +407,7 @@ if (require.main === module) { { console.log('- (sub-group without name) should output a/b/(Unnamed)/c/Foo') - const playlist = updateGroupFormat( + const playlist = updatePlaylistFormat( {items: [ {name: 'a', items: [ {name: 'b', items: [ |