From 838ce36f4401f3c0a6770c3dd863c2cf6aca13cd Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 14 Sep 2018 17:49:03 -0500 Subject: [PATCH] Fix path verification --- resources/lib/entrypoint/service.py | 2 +- resources/lib/helper/utils.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/entrypoint/service.py b/resources/lib/entrypoint/service.py index 9806e736..46e5ab9f 100644 --- a/resources/lib/entrypoint/service.py +++ b/resources/lib/entrypoint/service.py @@ -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) diff --git a/resources/lib/helper/utils.py b/resources/lib/helper/utils.py index 20dac5aa..093d65a3 100644 --- a/resources/lib/helper/utils.py +++ b/resources/lib/helper/utils.py @@ -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