Try to fix path detection

Current issue with unicode special characters and xbmcvfs.exists
This commit is contained in:
angelblue05 2016-10-20 20:02:53 -05:00
parent d58763504a
commit 210f60f9b2

View file

@ -3,6 +3,7 @@
################################################################################################## ##################################################################################################
import logging import logging
import os
import xbmc import xbmc
import xbmcvfs import xbmcvfs
@ -42,6 +43,9 @@ class Items(object):
@classmethod @classmethod
def path_validation(cls, path): def path_validation(cls, path):
# Verify if direct path is accessible or not # Verify if direct path is accessible or not
if not os.path.supports_unicode_filenames:
path = path.encode('utf-8')
if window('emby_pathverified') != "true" and not xbmcvfs.exists(path): if window('emby_pathverified') != "true" and not xbmcvfs.exists(path):
if dialog(type_="yesno", if dialog(type_="yesno",
heading="{emby}", heading="{emby}",