Add next command

This commit is contained in:
Radif Tazetdinov 2022-03-22 20:28:07 +03:00
parent e4322e1093
commit 353ffda1b2
2 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,7 @@ COMMANDS_QUEUEANDSELECT = ['queueandselect','qas']
COMMANDS_PLAYLIST = ['playlist', 'ql', 'pl']
COMMANDS_SELECT = ['select', 'qs']
COMMANDS_DELETE = ['delete', 'd', 'qd']
COMMANDS_NEXT = ["next", "qn"]
MPC_MIN_VER = "1.6.4"
MPC_BE_MIN_VER = "1.5.2.3123"
VLC_MIN_VERSION = "2.2.1"

View File

@ -228,6 +228,8 @@ class ConsoleUI(threading.Thread):
except (TypeError, AttributeError):
self.showErrorMessage(getMessage("playlist-invalid-index-error"))
elif command.group('command') in constants.COMMANDS_NEXT:
self._syncplayClient.playlist.loadNextFileInPlaylist()
else:
if self._tryAdvancedCommands(data):