diff --git a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy index 828652e..de17d24 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -672,7 +672,7 @@ Configuration: if (selection) { List mediaFiles = library.collectMediaFiles(selection) playQueue = library.removeAllFromPlaylist(playQueue.id) - library.addToPlaylist(playQueue.id, mediaFiles.collect { it.id }) + playQueue = library.addToPlaylist(playQueue.id, mediaFiles.collect { it.id }) setPlayQueue(playQueue) } vlcj.mediaListPlayer.play()