From 7a1d4c255815e9c76fda023450a65b4f2f81a9f2 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 9 May 2015 05:04:13 -0500 Subject: [PATCH] Fix for unicode path Seems os.path.exists needs utf-8 encoding or else it blows up. --- resources/lib/PlayUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/PlayUtils.py b/resources/lib/PlayUtils.py index b5f102cd..04f163e8 100644 --- a/resources/lib/PlayUtils.py +++ b/resources/lib/PlayUtils.py @@ -311,7 +311,7 @@ class PlayUtils(): path = result[u'Path'] # Verify the device has access to the direct path - if os.path.exists(path): + if os.path.exists(path.encode('utf-8')): return True elif ":\\" not in path: # Give benefit of the doubt for nfs protocol