mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Try to fix path detection
Current issue with unicode special characters and xbmcvfs.exists
This commit is contained in:
parent
d58763504a
commit
210f60f9b2
1 changed files with 4 additions and 0 deletions
|
@ -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}",
|
||||||
|
|
Loading…
Reference in a new issue