diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/play.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/play.js b/src/play.js index c27d2f3..8b051ac 100755 --- a/src/play.js +++ b/src/play.js @@ -125,11 +125,16 @@ async function main(args) { // We also want to de-smart-ify (stupidify? - simplify?) the playlist. const processedPlaylist = await processSmartPlaylist(openedPlaylist) + // ..And finally, we have to update the playlist format again, since + // processSmartPlaylist might have added new (un-updated) items: + const finalPlaylist = updatePlaylistFormat(processedPlaylist) + + sourcePlaylist = finalPlaylist + // The active playlist is a clone of the source playlist; after all it's // quite possible we'll be messing with the value of the active playlist, // and we don't want to reflect those changes in the source playlist. - sourcePlaylist = processedPlaylist - activePlaylist = clone(processedPlaylist) + activePlaylist = clone(sourcePlaylist) await processArgv(processedPlaylist.options, optionFunctions) } |