feat: controllo e scrittura file channels.json nel menu (Redirect)

aggiunta la voce redirect nel menu, per controllare gli url dei canali e scrivere il file channels.json,
al momento scrive ancora il file channels-test.json.
aggiunta la stessa voce nel file launcher.py ma commentata, riga 44 e 45 così potete testarla, la def
parte solo se il device ha superato tutte le prove di check connessione
This commit is contained in:
greko17
2019-08-05 09:51:12 +02:00
parent 0a9114bc49
commit 76130a91f6
9 changed files with 128 additions and 458 deletions

View File

@@ -34,11 +34,16 @@ 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
test_conn(is_exit = True, check_dns = True, view_msg = True,
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)
# Permette di scrivere il file channels.json
# controllando gli url del file solo se tutti i check
# della connessione sono andati a buon fine
## if check_adsl:
## check_channels()
def run(item=None):
logger.info()
if not item: