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_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)

View file

@ -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