Fix unicode failed playback

Failing due to window prop, doh!
This commit is contained in:
angelblue05 2015-05-10 07:39:16 -05:00
parent f7a65c6763
commit df665343c5

View file

@ -63,7 +63,7 @@ class PlayUtils():
return False
else:
self.logMsg("File is direct playing.", 1)
WINDOW.setProperty("%splaymethod" % playurl, "DirectPlay")
WINDOW.setProperty("%splaymethod" % playurl.encode('utf-8'), "DirectPlay")
except:
return False
@ -93,7 +93,7 @@ class PlayUtils():
except:
return False
return playurl
return playurl.encode('utf-8')
def isDirectPlay(self, result):
@ -311,7 +311,7 @@ class PlayUtils():
path = result[u'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
elif ":\\" not in path:
# Give benefit of the doubt for nfs protocol