diff options
author | liam4 <towerofnix@gmail.com> | 2017-07-20 09:55:40 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-07-20 09:55:43 -0300 |
commit | 4bb2bcf5018d7a3e76de3df74c176f4330b19dbe (patch) | |
tree | 09fa7de089ebf4bba8e336a389ba4180298de068 | |
parent | a1bc37389a063e95328987385fb8b5c77ed05488 (diff) |
Fix a typo that makes old playlists work again
(This is why unit testing is important)
-rw-r--r-- | src/playlist-utils.js | 3 |
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) |