mirror of https://github.com/Syncplay/syncplay
Fixed vlc opeing files in linux
This commit is contained in:
parent
1be4a53627
commit
5820c92beb
|
@ -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")):
|
||||
|
|
Loading…
Reference in New Issue