From a76aafb3db48a42a70f71986406d20cd2949c71f Mon Sep 17 00:00:00 2001 From: bluezed Date: Sun, 11 Oct 2015 10:15:17 +0200 Subject: [PATCH] [v2.0.19] - Added "refresh on start" setting for custom guides --- addon.xml | 2 +- changelog.txt | 5 +++++ resources/language/English/strings.po | 4 +++- resources/language/German/strings.po | 4 +++- resources/settings.xml | 1 + source.py | 6 +++++- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/addon.xml b/addon.xml index 0f6db79..f47abb2 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index 9eb28eb..008801a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +-------------------------- +FTV Guide - 2.0.19 +-------------------------- ++ Added "refresh on start" setting for custom guides + -------------------------- FTV Guide - 2.0.18 -------------------------- diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 2709a2e..35f0373 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -254,7 +254,9 @@ msgctxt "#30148" msgid "Appearance" msgstr "" -#empty strings from id 30149 to 30149 +msgctxt "#30149" +msgid "Refresh on start" +msgstr "" msgctxt "#30150" msgid "Oops, sorry about that!" diff --git a/resources/language/German/strings.po b/resources/language/German/strings.po index 78b9fe5..4f08727 100644 --- a/resources/language/German/strings.po +++ b/resources/language/German/strings.po @@ -252,7 +252,9 @@ msgctxt "#30148" msgid "Appearance" msgstr "Darstellung" -#empty strings from id 30149 to 30149 +msgctxt "#30149" +msgid "Refresh on start" +msgstr "Beim Start aktualisieren" msgctxt "#30150" msgid "Oops, sorry about that!" diff --git a/resources/settings.xml b/resources/settings.xml index 2d90040..3a2fc44 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -5,6 +5,7 @@ + diff --git a/source.py b/source.py index 8ab6256..8fe431f 100644 --- a/source.py +++ b/source.py @@ -240,7 +240,11 @@ def _close(self): self.conn.close() def _wasSettingsChanged(self, addon): - settingsChanged = False + gType = GuideTypes() + if int(addon.getSetting('xmltv.type')) == gType.CUSTOM_FILE_ID: + settingsChanged = addon.getSetting('xmltv.refresh') == 'true' + else: + settingsChanged = False noRows = True count = 0