mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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']
|
||||
try:
|
||||
path = os.path.exists(path)
|
||||
pathexists = os.path.exists(path)
|
||||
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
|
||||
if path:
|
||||
if pathexists:
|
||||
# Local or Network path
|
||||
self.logMsg("Path exists.", 2)
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue