CLI: Bugfix in remove command logic.

This commit is contained in:
Jonathan Bernard 2016-04-04 07:31:41 -05:00
parent 48baed6d69
commit 42960cb96e

View File

@ -690,6 +690,7 @@ Configuration:
if (m[0][1] != 'selection') selection = select(m[0][1], selection) if (m[0][1] != 'selection') selection = select(m[0][1], selection)
if (!selection) err 'Nothing was selected to be removed.' if (!selection) err 'Nothing was selected to be removed.'
Playlist p
if (removeFrom == 'queue') p = playQueue if (removeFrom == 'queue') p = playQueue
else if (removeFrom.startsWith('playlist')) { else if (removeFrom.startsWith('playlist')) {
String[] parts = removeFrom.split(/\s/, 2) String[] parts = removeFrom.split(/\s/, 2)