From cbf01b4d737bf9c2edc9358ad07047e08c95c9b2 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 1 Jun 2016 11:29:39 -0500 Subject: [PATCH] Fix a bug where playlist media counts where being overwritten with stale data. --- .../com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()