diff --git a/platformcode/launcher.py b/platformcode/launcher.py index b8c03ca1..0b404dcf 100644 --- a/platformcode/launcher.py +++ b/platformcode/launcher.py @@ -20,22 +20,12 @@ def start(): functions that we want to execute as soon as we open the plugin. """ logger.debug() - # config.set_setting('show_once', True) - # Test if all the required directories are created - config.verify_directories_created() - # check if the user has any connection problems - # if it has: it does not enter the addon - # if it has DNS problems start but let in - # if everything is ok: enter the addon - - from platformcode.checkhost import test_conn - import threading - threading.Thread(target=test_conn, args=(True, not config.get_setting('resolver_dns'), True, [], [], True)).start() if not config.dev_mode(): from platformcode import updater updater.showSavedChangelog() + def run(item=None): # from core.support import dbg;dbg() logger.debug() diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index db835439..a2b841c6 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -6149,7 +6149,7 @@ msgid "Notice Activation" msgstr "" msgctxt "#707406" -msgid "By disabling the alert, you have activated a notice\nthat will appear at the top right in case of problems" +msgid "By disabling the alert, you have activated a notice\nthat will appear at the top right" msgstr "" msgctxt "#707407" diff --git a/resources/language/resource.language.it_it/strings.po b/resources/language/resource.language.it_it/strings.po index 518dcde3..d85883ad 100644 --- a/resources/language/resource.language.it_it/strings.po +++ b/resources/language/resource.language.it_it/strings.po @@ -6150,8 +6150,8 @@ msgid "Notice Activation" msgstr "Attivazione Notifica" msgctxt "#707406" -msgid "By disabling the alert, you have activated a notice\nthat will appear at the top right in case of problems" -msgstr "Disattivando l'avviso, hai attivato una notifica\nche apparirà in alto a dx in caso di problemi" +msgid "By disabling the alert, you have activated a notice\nthat will appear at the top right" +msgstr "Disattivando l'avviso, hai attivato una notifica\nche apparirà in alto a dx" msgctxt "#707407" msgid "For any change to the DNS you MUST restart Kodi!" diff --git a/service.py b/service.py index e0f358a9..abba4ca3 100644 --- a/service.py +++ b/service.py @@ -448,6 +448,10 @@ class AddonMonitor(xbmc.Monitor): if __name__ == "__main__": logger.info('Starting KoD service') + + # Test if all the required directories are created + config.verify_directories_created() + if config.get_setting('autostart'): xbmc.executebuiltin('RunAddon(plugin.video.' + config.PLUGIN_NAME + ')') @@ -508,6 +512,10 @@ if __name__ == "__main__": while xbmc.getCondVisibility('Library.IsScanningVideo()'): xbmc.sleep(1000) + # check if the user has any connection problems + from platformcode.checkhost import test_conn + run_threaded(test_conn, (True, not config.get_setting('resolver_dns'), True, [], [], True)) + monitor = AddonMonitor() # mark as stopped all downloads (if we are here, probably kodi just started)