« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)