mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-13 21:56:11 +00:00
unicode
This commit is contained in:
parent
813af6bf84
commit
e685c99b5a
1 changed files with 3 additions and 3 deletions
|
@ -313,11 +313,11 @@ class PlayUtils():
|
||||||
|
|
||||||
path = result[u'Path']
|
path = result[u'Path']
|
||||||
try:
|
try:
|
||||||
path = os.path.exists(path)
|
pathexists = os.path.exists(path)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
path = os.path.exists(path.encode('utf-8'))
|
pathexists = os.path.exists(path.encode('utf-8'))
|
||||||
# Verify the device has access to the direct path
|
# Verify the device has access to the direct path
|
||||||
if path:
|
if pathexists:
|
||||||
# Local or Network path
|
# Local or Network path
|
||||||
self.logMsg("Path exists.", 2)
|
self.logMsg("Path exists.", 2)
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue