Fixed vlc opeing files in linux

This commit is contained in:
Uriziel 2013-01-26 00:12:30 +01:00
parent 1be4a53627
commit 5820c92beb
1 changed files with 4 additions and 0 deletions

View File

@ -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")):