From a88bf736bc821db57a1cb2542e001991f9ca14fc Mon Sep 17 00:00:00 2001 From: marco Date: Sat, 25 Apr 2020 17:36:36 +0200 Subject: [PATCH] fix checkhost --- resources/language/English/strings.po | 2 +- resources/language/Italian/strings.po | 4 ++-- resources/settings.xml | 1 + specials/checkhost.py | 29 +++++++++++++-------------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 4b1779f9..1ccedc89 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -5656,7 +5656,7 @@ msgid "Dear user, you seem to have problems with ADSL! We suggest you call your msgstr "" msgctxt "#70722" -msgid "Dear User, your current DNS do not allow you to reach all sites, ergo, not all Channels will work, we recommend you, to take advantage of more, to set up the DNS.\nSearch your favorite search engine for\n 1. guides on how to choose a free DNS.\n 2. set it up on your device.\nWe recommend the cloudflare DNS 1.1.1.1 and 1.0.0.1\nAlternatively the Google DNS 8.8.8.8 and 8.8.4.4.\nIf you have a VODAFONE station, enter the modem panel and disable 'Secure DNS' before proceeding.\n" +msgid "Dear User, you have disabled the DNS override and your current DNS do not allow you to reach all sites, ergo, not all Channels will work, we recommend you, to take advantage of more, to set up the DNS or re-enable the override in settings.\nSearch your favorite search engine for\n 1. guides on how to choose a free DNS.\n 2. set it up on your device.\nWe recommend the cloudflare DNS 1.1.1.1 and 1.0.0.1\nAlternatively the Google DNS 8.8.8.8 and 8.8.4.4.\nIf you have a VODAFONE station, enter the modem panel and disable 'Secure DNS' before proceeding.\n" msgstr "" msgctxt "#70723" diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index 4e335baf..7d69898a 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -5656,8 +5656,8 @@ msgid "Dear user, you seem to have problems with ADSL! We suggest you call your msgstr "Gentile Utente, sembra tu abbia problemi con l'ADSL! Controlla quanto meno che il modem/router sia acceso e/o il tuo dispositivo connesso.\nKoD NON TROVERA NIENTE finchè non risolverai il problema." msgctxt "#70722" -msgid "Dear User, your current DNS do not allow you to reach all sites, ergo, not all Channels will work, we recommend you, to take advantage of more, to set up the DNS.\nSearch your favorite search engine for\n 1. guides on how to choose a free DNS.\n 2. set it up on your device.\nWe recommend the cloudflare DNS 1.1.1.1 and 1.0.0.1\nAlternatively the Google DNS 8.8.8.8 and 8.8.4.4.\nIf you have a VODAFONE station, enter the modem panel and disable 'Secure DNS' before proceeding.\n" -msgstr "Gentile Utente, i tuoi DNS attuali non ti permettono di raggiungere tutti i siti, ergo, non tutti i Canali funzioneranno, ti consigliamo, per usufruirne di un maggior numero, di impostare i DNS.\nCerca sul tuo motore di ricerca preferito guide su come\n1. scegliere un DNS libero.\n2. impostarlo sul tuo dispositivo.\nNoi ti consigliamo i DNS di cloudflare 1.1.1.1 e 1.0.0.1\nIn alternativa i DNS di Google 8.8.8.8 e 8.8.4.4.\nSe hai una VODAFONE station, entra nel pannello del modem e disattiva la voce 'DNS sicuro' prima di procedere. E Ricordati 'Applica' in fondo alla pagina per salvare le impostazioni...\n" +msgid "Dear User, you have disabled the DNS override and your current DNS do not allow you to reach all sites, ergo, not all Channels will work, we recommend you, to take advantage of more, to set up the DNS or re-enable the override in settings.\nSearch your favorite search engine for\n 1. guides on how to choose a free DNS.\n 2. set it up on your device.\nWe recommend the cloudflare DNS 1.1.1.1 and 1.0.0.1\nAlternatively the Google DNS 8.8.8.8 and 8.8.4.4.\nIf you have a VODAFONE station, enter the modem panel and disable 'Secure DNS' before proceeding.\n" +msgstr "Gentile Utente, hai disattivato l'override DNS ed i tuoi DNS attuali non ti permettono di raggiungere tutti i siti, ergo, non tutti i Canali funzioneranno, ti consigliamo, per usufruirne di un maggior numero, di impostare i DNS oppure di riattivare l'override dalle impostazioni.\nCerca sul tuo motore di ricerca preferito guide su come\n1. scegliere un DNS libero.\n2. impostarlo sul tuo dispositivo.\nNoi ti consigliamo i DNS di cloudflare 1.1.1.1 e 1.0.0.1\nIn alternativa i DNS di Google 8.8.8.8 e 8.8.4.4.\nSe hai una VODAFONE station, entra nel pannello del modem e disattiva la voce 'DNS sicuro' prima di procedere. E Ricordati 'Applica' in fondo alla pagina per salvare le impostazioni...\n" msgctxt "#70723" msgid "links in the folder" diff --git a/resources/settings.xml b/resources/settings.xml index 84ed75be..5156a714 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -10,6 +10,7 @@ + diff --git a/specials/checkhost.py b/specials/checkhost.py index 41f5efbe..5593aae3 100644 --- a/specials/checkhost.py +++ b/specials/checkhost.py @@ -20,7 +20,7 @@ LIST_SITE = ['http://www.ansa.it/', 'https://www.google.it']#, 'https://www.goog # lista di siti che non verranno raggiunti con i DNS del gestore -LST_SITE_CHCK_DNS = ['https://casacinema.space', 'https://documentari-streaming-da.com'] +LST_SITE_CHCK_DNS = ['https://www.casacinema.me/', 'https://cb01-nuovo-indirizzo.info/'] #'https://www.italia-film.pw', 'https://www.cb01.uno/',] # tolti class Kdicc(): @@ -224,25 +224,24 @@ def test_conn(is_exit, check_dns, view_msg, exit() # se ha i DNS filtrati lo comunico all'utente if check_dns == True: - if ktest.check_Dns(): - if not ktest.check_Dns(): - if view_msg == True: - ktest.view_Advise(config.get_localized_string(70722)) + if not ktest.check_Dns(): + if view_msg == True: + ktest.view_Advise(config.get_localized_string(70722)) xbmc.log("############ Inizio Check DNS ############", level=xbmc.LOGNOTICE) xbmc.log("## IP: %s" % (ktest.ip_addr), level=xbmc.LOGNOTICE) xbmc.log("## DNS: %s" % (ktest.dns), level=xbmc.LOGNOTICE) xbmc.log("############ Fine Check DNS ############", level=xbmc.LOGNOTICE) - if check_dns == True: - if ktest.check_Ip() == True and ktest.check_Adsl() == True and ktest.check_Dns() == True: - return True - else: - return False - else: - if ktest.check_Ip() == True and ktest.check_Adsl() == True: - return True - else: - return False + # if check_dns == True: + # if ktest.check_Ip() == True and ktest.check_Adsl() == True and ktest.check_Dns() == True: + # return True + # else: + # return False + # else: + # if ktest.check_Ip() == True and ktest.check_Adsl() == True: + # return True + # else: + # return False # def per la creazione del file channels.json def check_channels(inutile=''):