« get me outta code hell

Make indexer code actually index the playlist (via updatePlaylistFormat) - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/playlist-utils.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2017-09-13 15:40:43 -0300
committerFlorrie <towerofnix@gmail.com>2017-09-13 15:40:43 -0300
commit1ee5c19fb3c458c9f2198362f4d4a9229eb5b314 (patch)
tree5f240d436a4c7e6c45d0752e8c30f84b5cabc477 /src/playlist-utils.js
parent13a11233ea07155a8c491c82d6ab2873b2616bd4 (diff)
Make indexer code actually index the playlist (via updatePlaylistFormat)
Diffstat (limited to 'src/playlist-utils.js')
-rw-r--r--src/playlist-utils.js8
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: [