From 5820c92beb2b63897287154357390bc7edde5c56 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 26 Jan 2013 00:12:30 +0100 Subject: [PATCH] Fixed vlc opeing files in linux --- syncplay/players/vlc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/players/vlc.py b/syncplay/players/vlc.py index b0ec261..edf5f67 100644 --- a/syncplay/players/vlc.py +++ b/syncplay/players/vlc.py @@ -104,6 +104,10 @@ class VlcPlayer(BasePlayer): t.setDaemon(True) t.start() elif (name == "filepath" and value != "no-input"): + if("file://" in value): + value = value.replace("file://", "") + if(not os.path.isfile(value)): + value = value.lstrip("/") self._filepath = value self._pathAsk.set() elif(name == "duration" and (value != "no-input")):