mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Another attempt, frikkin unicode
This commit is contained in:
parent
ab936a1760
commit
813af6bf84
1 changed files with 5 additions and 1 deletions
|
@ -312,8 +312,12 @@ class PlayUtils():
|
|||
return False
|
||||
|
||||
path = result[u'Path']
|
||||
try:
|
||||
path = os.path.exists(path)
|
||||
except UnicodeEncodeError:
|
||||
path = os.path.exists(path.encode('utf-8'))
|
||||
# Verify the device has access to the direct path
|
||||
if os.path.exists(path) == True:
|
||||
if path:
|
||||
# Local or Network path
|
||||
self.logMsg("Path exists.", 2)
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue