Fix path verification

This commit is contained in:
angelblue05 2018-09-14 17:49:03 -05:00
parent b4f142c01d
commit 838ce36f44
2 changed files with 5 additions and 5 deletions

View file

@ -399,7 +399,7 @@ class Service(xbmc.Monitor):
"emby_initialScan",
"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:
window(prop, clear=True)

View file

@ -210,13 +210,13 @@ def validate(path):
path = path if os.path.supports_unicode_filenames else path.encode('utf-8')
if not xbmcvfs.exists(path):
if dialog(type_="yesno",
heading="{emby}",
line1="%s %s. %s" % (_(33047), path, _(33048))):
LOG.info("Could not find %s", path)
if dialog("yesno", heading="{emby}", line1="%s %s. %s" % (_(33047), path, _(33048))):
return False
window('emby_pathverified', "true")
window('emby_pathverified.bool', True)
return True