From 8d99a28e2466c43ec554904ef90d09109f2c1004 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 23 Sep 2017 10:42:04 -0300 Subject: Fix a bug where you couldn't --exclude groups added by a smart playlist --- src/play.js | 9 +++++++-- 1 file 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) } -- cgit 1.3.0-6-gf8a5