Add next command
This commit is contained in:
parent
e4322e1093
commit
353ffda1b2
@ -129,6 +129,7 @@ COMMANDS_QUEUEANDSELECT = ['queueandselect','qas']
|
|||||||
COMMANDS_PLAYLIST = ['playlist', 'ql', 'pl']
|
COMMANDS_PLAYLIST = ['playlist', 'ql', 'pl']
|
||||||
COMMANDS_SELECT = ['select', 'qs']
|
COMMANDS_SELECT = ['select', 'qs']
|
||||||
COMMANDS_DELETE = ['delete', 'd', 'qd']
|
COMMANDS_DELETE = ['delete', 'd', 'qd']
|
||||||
|
COMMANDS_NEXT = ["next", "qn"]
|
||||||
MPC_MIN_VER = "1.6.4"
|
MPC_MIN_VER = "1.6.4"
|
||||||
MPC_BE_MIN_VER = "1.5.2.3123"
|
MPC_BE_MIN_VER = "1.5.2.3123"
|
||||||
VLC_MIN_VERSION = "2.2.1"
|
VLC_MIN_VERSION = "2.2.1"
|
||||||
|
|||||||
@ -228,6 +228,8 @@ class ConsoleUI(threading.Thread):
|
|||||||
|
|
||||||
except (TypeError, AttributeError):
|
except (TypeError, AttributeError):
|
||||||
self.showErrorMessage(getMessage("playlist-invalid-index-error"))
|
self.showErrorMessage(getMessage("playlist-invalid-index-error"))
|
||||||
|
elif command.group('command') in constants.COMMANDS_NEXT:
|
||||||
|
self._syncplayClient.playlist.loadNextFileInPlaylist()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if self._tryAdvancedCommands(data):
|
if self._tryAdvancedCommands(data):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user