From b8f84c80c3ff7008d8520daa789c9038c314cad8 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sun, 4 May 2014 17:06:37 +0200 Subject: [PATCH] Fixed the deprecated calls in mpv, removed -no-msgcolor as it apparently didn't have any effect --- syncplay/constants.py | 4 ++-- syncplay/players/mplayer.py | 12 +++++++----- syncplay/players/mpv.py | 19 ++++++++++++++----- 3 files changed, 23 insertions(+), 12 deletions(-) diff --git a/syncplay/constants.py b/syncplay/constants.py index ef0bbbd..bd392ad 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -86,10 +86,10 @@ VLC_MAX_PORT = 55000 #These are not changes you're looking for MPLAYER_SLAVE_ARGS = [ '-slave', '--hr-seek=always', '-nomsgcolor', '-msglevel', 'all=1:global=4:cplayer=4'] # --quiet works with both mpv 0.2 and 0.3 -MPV_SLAVE_ARGS = ['--slave-broken', '--hr-seek=always', '--no-msgcolor', '--quiet'] +MPV_SLAVE_ARGS = ['--slave-broken', '--hr-seek=always', '--quiet'] VLC_SLAVE_ARGS = ['--extraintf=luaintf','--lua-intf=syncplay','--no-quiet','--no-input-fast-seek'] VLC_SLAVE_NONOSX_ARGS = ['--no-one-instance','--no-one-instance-when-started-from-file'] -MPLAYER_ANSWER_REGEX = "^ANS_([a-zA-Z_]+)=(.+)$" +MPLAYER_ANSWER_REGEX = "^ANS_([a-zA-Z_-]+)=(.+)$" VLC_ANSWER_REGEX = r"(?:^(?P[a-zA-Z_]+)(?:\: )?(?P.*))" UI_COMMAND_REGEX = r"^(?P[^\ ]+)(?:\ (?P.+))?" UI_OFFSET_REGEX = r"^(?:o|offset)\ ?(?P[/+-])?(?P