mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Fix for unicode path
Seems os.path.exists needs utf-8 encoding or else it blows up.
This commit is contained in:
parent
0ad7ed3c18
commit
7a1d4c2558
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
if os.path.exists(path.encode('utf-8')):
|
||||||
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