From e685c99b5a76f3004147a7cbbb0d37d658ee2e28 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 17 May 2015 06:27:28 -0500 Subject: [PATCH] unicode --- resources/lib/PlayUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index 834443a1..fe2e84ac 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -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