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.setDaemon(True)
|
||||||
t.start()
|
t.start()
|
||||||
elif (name == "filepath" and value != "no-input"):
|
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._filepath = value
|
||||||
self._pathAsk.set()
|
self._pathAsk.set()
|
||||||
elif(name == "duration" and (value != "no-input")):
|
elif(name == "duration" and (value != "no-input")):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user