diff --git a/syncplay/constants.py b/syncplay/constants.py index 04e2d75..a4e7a58 100755 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -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" diff --git a/syncplay/messages_de.py b/syncplay/messages_de.py index f726ae0..15a46ad 100755 --- a/syncplay/messages_de.py +++ b/syncplay/messages_de.py @@ -92,6 +92,7 @@ de = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate "commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate "syncplay-version-notification": "Syncplay Version: {}", # syncplay.version "more-info-notification": "Weitere Informationen auf: {}", # projectURL diff --git a/syncplay/messages_en.py b/syncplay/messages_en.py index c1ed349..3c0ca7a 100644 --- a/syncplay/messages_en.py +++ b/syncplay/messages_en.py @@ -92,6 +92,7 @@ en = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", "commandList-notification/playlist": "\tql - show the current playlist", "commandList-notification/select": "\tqs [index] - select given entry in the playlist", + "commandList-notification/next": "\tqn - select next entry in the playlist", "commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", "syncplay-version-notification": "Syncplay version: {}", # syncplay.version "more-info-notification": "More info available at: {}", # projectURL diff --git a/syncplay/messages_es.py b/syncplay/messages_es.py index 17c2cdc..edc5442 100644 --- a/syncplay/messages_es.py +++ b/syncplay/messages_es.py @@ -92,6 +92,7 @@ es = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate "commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate "syncplay-version-notification": "Versión de Syncplay: {}", # syncplay.version "more-info-notification": "Más información disponible en: {}", # projectURL diff --git a/syncplay/messages_fr.py b/syncplay/messages_fr.py index c8ec053..bcbfd67 100644 --- a/syncplay/messages_fr.py +++ b/syncplay/messages_fr.py @@ -91,6 +91,7 @@ fr = { "commandList-notification/queue": "\tqa [fichier/url] - ajoute un fichier ou une URL au bas de la liste de lecture", "commandList-notification/playlist": "\tql - afficher la liste de lecture actuelle", "commandList-notification/select": "\tqs [index] - sélectionnez l'entrée donnée dans la liste de lecture", + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - supprime l'entrée donnée de la liste de lecture", "syncplay-version-notification": "Version de Syncplay: {}", # syncplay.version "more-info-notification": "Plus d'informations disponibles sur: {}", # projectURL diff --git a/syncplay/messages_it.py b/syncplay/messages_it.py index efdff01..e177a7e 100755 --- a/syncplay/messages_it.py +++ b/syncplay/messages_it.py @@ -92,6 +92,7 @@ it = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate "commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate "syncplay-version-notification": "Versione di Syncplay: {}", # syncplay.version "more-info-notification": "Maggiori informazioni a: {}", # projectURL diff --git a/syncplay/messages_pt_BR.py b/syncplay/messages_pt_BR.py index 3ae5d0d..18f2023 100644 --- a/syncplay/messages_pt_BR.py +++ b/syncplay/messages_pt_BR.py @@ -93,6 +93,7 @@ pt_BR = { "commandList-notification/queueandselect": "\tqas [arquivo/url] - adiciona um arquivo ou URL para o final da playlist e o seleciona", "commandList-notification/playlist": "\tql - mostra a playlist atual", "commandList-notification/select": "\tqs [índice] - seleciona um item da playlist", + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - remove um item da playlist", "syncplay-version-notification": "Versão do Syncplay: {}", # syncplay.version "more-info-notification": "Mais informações disponíveis em: {}", # projectURL diff --git a/syncplay/messages_pt_PT.py b/syncplay/messages_pt_PT.py index b8f5f00..8a77477 100644 --- a/syncplay/messages_pt_PT.py +++ b/syncplay/messages_pt_PT.py @@ -92,6 +92,7 @@ pt_PT = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate "commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate "syncplay-version-notification": "Versão do Syncplay: {}", # syncplay.version "more-info-notification": "Mais informações disponíveis em: {}", # projectURL diff --git a/syncplay/messages_ru.py b/syncplay/messages_ru.py index fcc11d5..734c11e 100755 --- a/syncplay/messages_ru.py +++ b/syncplay/messages_ru.py @@ -91,6 +91,7 @@ ru = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - показать текущий список воспроизведения", "commandList-notification/select": "\tqs [индекс] - выделить указанный пункт в списке воспроизведения", + "commandList-notification/next": "\tqn - выделить следующий пункт в списке воспроизведения", "commandList-notification/delete": "\tqd [индекс] - удалить указанный пункт из списка воспроизведения", "syncplay-version-notification": "Версия Syncplay: {}", # syncplay.version "more-info-notification": "Больше информации на {}", # projectURL diff --git a/syncplay/messages_tr.py b/syncplay/messages_tr.py index a9eb23c..774fc8d 100644 --- a/syncplay/messages_tr.py +++ b/syncplay/messages_tr.py @@ -92,6 +92,7 @@ tr = { "commandList-notification/queueandselect": "\tqas [file/url] - add file or url to bottom of playlist and select it", # TO DO: Translate "commandList-notification/playlist": "\tql - mevcut oynatma listesini gösterir", "commandList-notification/select": "\tqs [index] - oynatma listesinde verilen girişi seçer", + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - verilen girişi oynatma listesinden siler", "syncplay-version-notification": "Syncplay sürümü: {}", # syncplay.version "more-info-notification": "Daha fazla bilgiye şu adresten ulaşabilirsiniz: {}", # projectURL diff --git a/syncplay/messages_zh_CN.py b/syncplay/messages_zh_CN.py index e7d271e..64c9d95 100644 --- a/syncplay/messages_zh_CN.py +++ b/syncplay/messages_zh_CN.py @@ -92,6 +92,7 @@ zh_CN = { "commandList-notification/queueandselect": "\tqas [file/url] - 在播放列表最后添加文件或URL并选中", "commandList-notification/playlist": "\tql - 显示当前播放列表", "commandList-notification/select": "\tqs [index] - 选中播放列表中指定序号的视频", + "commandList-notification/next": "\tqn - select next entry in the playlist", # TODO: Translate "commandList-notification/delete": "\tqd [index] - 删除播放列表中指定序号的视频", "syncplay-version-notification": "当前Syncplay版本为{}", # syncplay.version "more-info-notification": "更多信息请参照{}", # projectURL diff --git a/syncplay/ui/consoleUI.py b/syncplay/ui/consoleUI.py index f7cec73..5ea9819 100755 --- a/syncplay/ui/consoleUI.py +++ b/syncplay/ui/consoleUI.py @@ -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): @@ -250,6 +252,7 @@ class ConsoleUI(threading.Thread): self.showMessage(getMessage("commandList-notification/queueandselect"), True) self.showMessage(getMessage("commandList-notification/playlist"), True) self.showMessage(getMessage("commandList-notification/select"), True) + self.showMessage(getMessage("commandList-notification/next"), True) self.showMessage(getMessage("commandList-notification/delete"), True) self.showMessage(getMessage("syncplay-version-notification").format(syncplay.version), True) self.showMessage(getMessage("more-info-notification").format(syncplay.projectURL), True)