mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +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 os
|
||||
|
||||
import xbmc
|
||||
import xbmcvfs
|
||||
|
@ -42,6 +43,9 @@ class Items(object):
|
|||
@classmethod
|
||||
def path_validation(cls, path):
|
||||
# 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 dialog(type_="yesno",
|
||||
heading="{emby}",
|
||||
|
|
Loading…
Reference in a new issue