From 0245f865883d70bbfe8a48817faa09cecd7ec3ef Mon Sep 17 00:00:00 2001 From: Etoh Date: Sun, 12 Jul 2015 23:54:29 +0100 Subject: [PATCH] URIs without URL metadata were not being registered for VLC (reported by Phaseout) --- resources/lua/intf/syncplay.lua | 6 ++++-- syncplay/constants.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/lua/intf/syncplay.lua b/resources/lua/intf/syncplay.lua index 4541a34..2cbeee0 100644 --- a/resources/lua/intf/syncplay.lua +++ b/resources/lua/intf/syncplay.lua @@ -5,7 +5,7 @@ Principal author: Etoh Other contributors: DerGenaue, jb Project: http://syncplay.pl/ - Version: 0.2.7 + Version: 0.2.8 Note: * This interface module is intended to be used in conjunction with Syncplay. @@ -84,7 +84,7 @@ You may also need to re-copy the syncplay.lua file when you update VLC. --]==========================================================================] -local connectorversion = "0.2.7" +local connectorversion = "0.2.8" local vlcversion = vlc.misc.version() local durationdelay = 500000 -- Pause for get_duration command etc for increased reliability (uses microseconds) local loopsleepduration = 2500 -- Pause for every event loop (uses microseconds) @@ -331,6 +331,8 @@ function get_filepath () local metas = item:metas() if metas and metas["url"] and string.len(metas["url"]) > 0 then response = metas["url"] + elseif item:uri() and string.len(item:uri()) > 0 then + response = item:uri() else response = unknownstream end diff --git a/syncplay/constants.py b/syncplay/constants.py index dc7dcfd..ab599d3 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -63,7 +63,7 @@ COMMANDS_AUTH = ['a','auth'] COMMANDS_TOGGLE = ['t','toggle'] MPC_MIN_VER = "1.6.4" VLC_MIN_VERSION = "2.2.1" -VLC_INTERFACE_MIN_VERSION = "0.2.7" +VLC_INTERFACE_MIN_VERSION = "0.2.8" VLC_LATENCY_ERROR_THRESHOLD = 2.0 CONTROLLED_ROOMS_MIN_VERSION = "1.3.0" USER_READY_MIN_VERSION = "1.3.0"