From 4bb2bcf5018d7a3e76de3df74c176f4330b19dbe Mon Sep 17 00:00:00 2001 From: liam4 Date: Thu, 20 Jul 2017 09:55:40 -0300 Subject: Fix a typo that makes old playlists work again (This is why unit testing is important) --- src/playlist-utils.js | 3 +-- 1 file changed, 1 insertion(+), 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) -- cgit 1.3.0-6-gf8a5