diff --git a/resources/language/resource.language.de_de/strings.po b/resources/language/resource.language.de_de/strings.po index cff26f9..f7efb55 100644 --- a/resources/language/resource.language.de_de/strings.po +++ b/resources/language/resource.language.de_de/strings.po @@ -62,6 +62,10 @@ msgctxt "#30117" msgid "Recent calculated by" msgstr "Neuigkeit berechnet ab" +msgctxt "#30118" +msgid "Up-to-Date check interval [sec]" +msgstr "Nach Updates suchen alle [sec]" + msgctxt "#30171" msgid "Aired Date" msgstr "Sendedatum" diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index ac51340..cdf990e 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -62,6 +62,10 @@ msgctxt "#30117" msgid "Recent calculated by" msgstr "Recent calculated by" +msgctxt "#30118" +msgid "Up-to-Date check interval [sec]" +msgstr "Up-to-Date check interval [sec]" + msgctxt "#30171" msgid "Aired Date" msgstr "Aired Date" diff --git a/resources/language/resource.language.it_it/strings.po b/resources/language/resource.language.it_it/strings.po index 58553d8..b992c56 100644 --- a/resources/language/resource.language.it_it/strings.po +++ b/resources/language/resource.language.it_it/strings.po @@ -62,6 +62,10 @@ msgctxt "#30117" msgid "Recent calculated by" msgstr "Novità calcolate con" +msgctxt "#30118" +msgid "Up-to-Date check interval [sec]" +msgstr "intervallo di controllo [sec]" + msgctxt "#30171" msgid "Aired Date" msgstr "Data di Trasmissione" diff --git a/resources/lib/service.py b/resources/lib/service.py index 7e649f1..3992af9 100644 --- a/resources/lib/service.py +++ b/resources/lib/service.py @@ -73,7 +73,7 @@ def run(self): self.settings.save_update_instance(self.monitor.instance_id) self.updater.update(False) # Sleep/wait for abort for 60 seconds - if self.monitor.wait_for_abort(15): + if self.monitor.wait_for_abort(self.settings.updateCheckInterval): # Abort was requested while waiting. We should exit break self.info('Shutting down... (instance id: {})', diff --git a/resources/lib/settings.py b/resources/lib/settings.py index 8234338..082a160 100644 --- a/resources/lib/settings.py +++ b/resources/lib/settings.py @@ -36,6 +36,7 @@ def load(self): self.maxresults = int(addon.getSetting('maxresults')) self.maxage = int(addon.getSetting('maxage')) * 86400 self.recentmode = int(addon.getSetting('recentmode')) + self.updateCheckInterval = int(addon.getSetting('updateCheckInterval')) # database self.type = int(addon.getSetting('dbtype')) self.host = addon.getSetting('dbhost') diff --git a/resources/settings.xml b/resources/settings.xml index 1df4ab1..d127cfa 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -9,6 +9,7 @@ +