Kdicc sotto thread, redirect solo per i dev e messaggio aggiornamenti a prova di nabbo

This commit is contained in:
mac12m99
2019-08-21 23:07:39 +02:00
parent f4cd4c7375
commit 468ee8bffe
5 changed files with 16 additions and 18 deletions

View File

@@ -34,9 +34,11 @@ def start():
# se lo ha: non lo fa entrare nell'addon
# se ha problemi di DNS avvia ma lascia entrare
# se tutto ok: entra nell'addon
from specials.checkhost import test_conn, check_channels
check_adsl = test_conn(is_exit = True, check_dns = True, view_msg = True,
lst_urls = [], lst_site_check_dns = [], in_addon = True)
from specials.checkhost import test_conn
import threading
threading.Thread(target=test_conn, args=(True, True, True, [], [], True)).start()
# check_adsl = test_conn(is_exit = True, check_dns = True, view_msg = True,
# lst_urls = [], lst_site_check_dns = [], in_addon = True)
def run(item=None):

View File

@@ -145,7 +145,7 @@ def check_addon_init():
nCommitApplied += 1
if addon.getSetting("addon_update_message"):
time = nCommitApplied * 2000 if nCommitApplied < 10 else 20000
platformtools.dialog_notification('Kodi on Demand', changelog, time)
platformtools.dialog_notification('Kodi on Demand', 'Aggiornamenti applicati:\n' + changelog[:-3], time)
localCommitFile.seek(0)
localCommitFile.truncate()