mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix path verification
This commit is contained in:
parent
b4f142c01d
commit
838ce36f44
2 changed files with 5 additions and 5 deletions
|
@ -399,7 +399,7 @@ class Service(xbmc.Monitor):
|
||||||
"emby_initialScan",
|
"emby_initialScan",
|
||||||
|
|
||||||
"emby_play", "emby_online", "emby.connected", "emby_should_stop", "emby.resume",
|
"emby_play", "emby_online", "emby.connected", "emby_should_stop", "emby.resume",
|
||||||
"emby.external", "emby.external_check", "emby_deviceId", "emby_db_check"
|
"emby.external", "emby.external_check", "emby_deviceId", "emby_db_check", "emby_pathverified"
|
||||||
]
|
]
|
||||||
for prop in properties:
|
for prop in properties:
|
||||||
window(prop, clear=True)
|
window(prop, clear=True)
|
||||||
|
|
|
@ -210,13 +210,13 @@ def validate(path):
|
||||||
path = path if os.path.supports_unicode_filenames else path.encode('utf-8')
|
path = path if os.path.supports_unicode_filenames else path.encode('utf-8')
|
||||||
|
|
||||||
if not xbmcvfs.exists(path):
|
if not xbmcvfs.exists(path):
|
||||||
if dialog(type_="yesno",
|
LOG.info("Could not find %s", path)
|
||||||
heading="{emby}",
|
|
||||||
line1="%s %s. %s" % (_(33047), path, _(33048))):
|
if dialog("yesno", heading="{emby}", line1="%s %s. %s" % (_(33047), path, _(33048))):
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
window('emby_pathverified', "true")
|
window('emby_pathverified.bool', True)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue