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
|
return False
|
||||||
|
|
||||||
path = result[u'Path']
|
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
|
# Verify the device has access to the direct path
|
||||||
if os.path.exists(path) == True:
|
if path:
|
||||||
# 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