mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix unicode failed playback
Failing due to window prop, doh!
This commit is contained in:
parent
f7a65c6763
commit
df665343c5
1 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ class PlayUtils():
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
self.logMsg("File is direct playing.", 1)
|
self.logMsg("File is direct playing.", 1)
|
||||||
WINDOW.setProperty("%splaymethod" % playurl, "DirectPlay")
|
WINDOW.setProperty("%splaymethod" % playurl.encode('utf-8'), "DirectPlay")
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ class PlayUtils():
|
||||||
except:
|
except:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return playurl
|
return playurl.encode('utf-8')
|
||||||
|
|
||||||
|
|
||||||
def isDirectPlay(self, result):
|
def isDirectPlay(self, result):
|
||||||
|
@ -311,7 +311,7 @@ class PlayUtils():
|
||||||
|
|
||||||
path = result[u'Path']
|
path = result[u'Path']
|
||||||
# Verify the device has access to the direct path
|
# Verify the device has access to the direct path
|
||||||
if os.path.exists(path.encode('utf-8')):
|
if os.path.exists(path) == True:
|
||||||
return True
|
return True
|
||||||
elif ":\\" not in path:
|
elif ":\\" not in path:
|
||||||
# Give benefit of the doubt for nfs protocol
|
# Give benefit of the doubt for nfs protocol
|
||||||
|
|
Loading…
Reference in a new issue