From c8405414d1ceec45e6e8cf14067f14f0e7eeb734 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 9 Dec 2018 13:52:26 +0100 Subject: [PATCH] Add PKC settings status indication for caching --- resources/language/resource.language.en_gb/strings.po | 5 +++++ resources/lib/artwork.py | 3 +++ resources/lib/service_entry.py | 2 ++ resources/settings.xml | 1 + 4 files changed, 11 insertions(+) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 309a38cd..2533e94a 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -146,6 +146,11 @@ msgctxt "#30027" msgid "Prefix in Kodi playlist name to trigger sync" msgstr "" +# PKC settings artwork options: status info +msgctxt "#30028" +msgid "PKC-only image caching completed" +msgstr "" + msgctxt "#30030" msgid "Port Number" msgstr "" diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index ac5cb283..fbae23b6 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -60,6 +60,9 @@ class ImageCachingThread(backgroundthread.KillableThread): return app.APP.monitor.waitForAbort(1) cache_url(url) + else: + # Toggles Image caching completed to Yes + utils.settings('plex_status_image_caching', value=utils.lang(107)) LOG.info("---===### Stopped ImageCachingThread ###===---") diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index b97d99de..4c4e7faa 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -67,6 +67,8 @@ class Service(): # Reset some status in the PKC settings # toggled to "No" utils.settings('plex_status_fanarttv_lookup', value=utils.lang(106)) + # toggled to "No" + utils.settings('plex_status_image_caching', value=utils.lang(106)) # Reset window props for prop in WINDOW_PROPERTIES: diff --git a/resources/settings.xml b/resources/settings.xml index 43e9cfe5..5feec070 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -139,6 +139,7 @@ +