From 01bbaaa90ae646b7132866f45ed1557be7f32efb Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 9 Dec 2018 13:45:09 +0100 Subject: [PATCH] Replace annoying sync message with PKC settings info --- resources/lib/service_entry.py | 4 ++++ resources/lib/sync.py | 9 +++------ resources/settings.xml | 2 ++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index bea1c910..b97d99de 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -64,6 +64,10 @@ class Service(): utils.settings('syncSpecificPlexPlaylistsPrefix')) LOG.info("Db version: %s", utils.settings('dbCreatedWithVersion')) + # Reset some status in the PKC settings + # toggled to "No" + utils.settings('plex_status_fanarttv_lookup', value=utils.lang(106)) + # Reset window props for prop in WINDOW_PROPERTIES: utils.window(prop, clear=True) diff --git a/resources/lib/sync.py b/resources/lib/sync.py index c64b7859..37ab378f 100644 --- a/resources/lib/sync.py +++ b/resources/lib/sync.py @@ -150,12 +150,9 @@ class Sync(backgroundthread.KillableThread): def on_fanart_download_finished(self, successful): # FanartTV lookup completed - if successful and app.SYNC.sync_dialog: - utils.dialog('notification', - heading='{plex}', - message=utils.lang(30019), - icon='{plex}', - sound=False) + if successful: + # Toggled to "Yes" + utils.settings('plex_status_fanarttv_lookup', value=utils.lang(107)) def start_image_cache_thread(self): if not utils.settings('enableTextureCache') == "true": diff --git a/resources/settings.xml b/resources/settings.xml index 812885dd..43e9cfe5 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -137,6 +137,8 @@ + +