« get me outta code hell

Fix a typo that makes old playlists work again - 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:
authorliam4 <towerofnix@gmail.com>2017-07-20 09:55:40 -0300
committerliam4 <towerofnix@gmail.com>2017-07-20 09:55:43 -0300
commit4bb2bcf5018d7a3e76de3df74c176f4330b19dbe (patch)
tree09fa7de089ebf4bba8e336a389ba4180298de068 /src/playlist-utils.js
parenta1bc37389a063e95328987385fb8b5c77ed05488 (diff)
Fix a typo that makes old playlists work again
(This is why unit testing is important)
Diffstat (limited to 'src/playlist-utils.js')
-rw-r--r--src/playlist-utils.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/playlist-utils.js b/src/playlist-utils.js
index 1a0d7b8..55638ed 100644
--- a/src/playlist-utils.js
+++ b/src/playlist-utils.js
@@ -2,7 +2,6 @@
 
 const parentSymbol = Symbol('parent')
 
-// TODO: Use this when loading playlists. Also grab things from http-music.js.
 function updatePlaylistFormat(playlist) {
   const defaultPlaylist = {
     options: [],
@@ -55,7 +54,7 @@ function updateGroupFormat(group) {
   groupObj.items = groupObj.items.map(item => {
     // Theoretically this wouldn't work on downloader-args where the value
     // isn't a string..
-    if (typeof group[1] === 'string' || item.downloaderArg) {
+    if (typeof item[1] === 'string' || item.downloaderArg) {
       item = updateTrackFormat(item)
     } else {
       item = updateGroupFormat(item)