From 813af6bf84902f6535445434f762ec86cff83945 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 17 May 2015 05:52:21 -0500 Subject: [PATCH] Another attempt, frikkin unicode --- resources/lib/PlayUtils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index b093cb07..834443a1 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -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