From 9441d85d9777662a461bcff7334216f1157759d3 Mon Sep 17 00:00:00 2001 From: et0h Date: Thu, 4 Mar 2021 16:11:09 +0000 Subject: [PATCH] Update duration for streams to fix playlist advancement (#334) --- syncplay/constants.py | 4 ++-- syncplay/players/vlc.py | 7 ++++++- syncplay/resources/lua/intf/syncplay.lua | 20 ++++++++++++++------ 3 files changed, 22 insertions(+), 9 deletions(-) diff --git a/syncplay/constants.py b/syncplay/constants.py index aa9ae1f..f5021ae 100755 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -131,7 +131,7 @@ COMMANDS_DELETE = ['delete', 'd', 'qd'] MPC_MIN_VER = "1.6.4" MPC_BE_MIN_VER = "1.5.2.3123" VLC_MIN_VERSION = "2.2.1" -VLC_INTERFACE_VERSION = "0.3.6" +VLC_INTERFACE_VERSION = "0.3.7" VLC_LATENCY_ERROR_THRESHOLD = 2.0 MPV_UNRESPONSIVE_THRESHOLD = 60.0 CONTROLLED_ROOMS_MIN_VERSION = "1.3.0" @@ -287,7 +287,7 @@ VLC_SLAVE_EXTRA_ARGS = getValueForOS({ MPV_SUPERSEDE_IF_DUPLICATE_COMMANDS = ["set_property time-pos ", "loadfile "] MPV_REMOVE_BOTH_IF_DUPLICATE_COMMANDS = ["cycle pause"] MPLAYER_ANSWER_REGEX = "^ANS_([a-zA-Z_-]+)=(.+)$|^(Exiting)\.\.\. \((.+)\)$" -VLC_ANSWER_REGEX = r"(?:^(?P[a-zA-Z_]+)(?:\: )?(?P.*))" +VLC_ANSWER_REGEX = r"(?:^(?P[a-zA-Z_-]+)(?:\: )?(?P.*))" UI_COMMAND_REGEX = r"^(?P[^\ ]+)(?:\ (?P.+))?" UI_OFFSET_REGEX = r"^(?:o|offset)\ ?(?P[/+-])?(?P