From 65ce9df81326a92b57d7437f853aa572a197262c Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Fri, 9 Apr 2021 23:27:16 +0200 Subject: [PATCH] Possibile fix alla inutile ri-richiesta di configurazione videoteca (cherry picked from commit 6424e3881c9aacc9f04338098745f40800b3e6fb) --- platformcode/config.py | 4 ++-- service.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformcode/config.py b/platformcode/config.py index eb1e09f1..b76b6c8f 100644 --- a/platformcode/config.py +++ b/platformcode/config.py @@ -147,9 +147,9 @@ def get_all_settings_addon(): data = infile.read().decode('utf-8') ret = {} - matches = scrapertools.find_multiple_matches(data, ']*>([^<]*)') + matches = scrapertools.find_multiple_matches(data, ']*>') - for _id, value in matches: + for _id in matches: ret[_id] = get_setting(_id) return ret diff --git a/service.py b/service.py index 323b12dc..199dec5f 100644 --- a/service.py +++ b/service.py @@ -402,7 +402,7 @@ class AddonMonitor(xbmc.Monitor): config.set_setting('elementum_on_seed', False) if self.settings_pre.get("shortcut_key", '') != settings_post.get("shortcut_key", ''): xbmc.executebuiltin('Action(reloadkeymaps)') - self.settings_pre = settings_post + self.settings_pre.update(settings_post) def onNotification(self, sender, method, data): if method == 'VideoLibrary.OnUpdate':