Fix for unicode path

Seems os.path.exists needs utf-8 encoding or else it blows up.
This commit is contained in:
angelblue05 2015-05-09 05:04:13 -05:00
parent 0ad7ed3c18
commit 7a1d4c2558

View file

@ -311,7 +311,7 @@ class PlayUtils():
path = result[u'Path']
# Verify the device has access to the direct path
if os.path.exists(path):
if os.path.exists(path.encode('utf-8')):
return True
elif ":\\" not in path:
# Give benefit of the doubt for nfs protocol