From 94ee66fdf992265ef65c35a413ecb6aca3163abd Mon Sep 17 00:00:00 2001 From: greko17 Date: Mon, 2 Sep 2019 19:43:06 +0200 Subject: [PATCH] modificato messaggio DNS --- resources/language/English/strings.po | 34 ++++++++++++++++++++-- resources/language/Italian/strings.po | 42 ++++++++++++++++++++++----- specials/checkhost.py | 6 ++-- 3 files changed, 69 insertions(+), 13 deletions(-) mode change 100755 => 100644 specials/checkhost.py diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index d60a0261..33f7ce68 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -173,6 +173,10 @@ msgctxt "#30109" msgid "added to download list" msgstr "" +msgctxt "#30110" +msgid " Episodes of: " +msgstr " Episodi di: " + msgctxt "#30112" msgid "Enter title to search" msgstr "" @@ -217,6 +221,14 @@ msgctxt "#30131" msgid "Videolibrary" msgstr "" +msgctxt "#30132" +msgid "It seems that the Channel %s no longer exists." +msgstr "" + +msgctxt "#30133" +msgid "Do you want to remove links from this channel?" +msgstr "" + msgctxt "#30135" msgid "added to the videolibrary" msgstr "" @@ -1771,7 +1783,7 @@ msgid " and quality %s" msgstr "" msgctxt "#60432" -msgid "[COLOR %s]No results in this language '%s'%s, click to show without filter[/COLOR]" +msgid "[B]No results in this language '%s'%s, click to show without filter[/B]" msgstr "" msgctxt "#60433" @@ -5594,7 +5606,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 ergo sites, not all Channels will work. We recommend that you set up your DNS to take advantage of more channels. Search your favorite search engine how to set them up on your device." +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 "" msgctxt "#70723" @@ -5603,4 +5615,20 @@ msgstr "" msgctxt "#70724" msgid "Channel" -msgstr "" \ No newline at end of file +msgstr "" + +msgctxt "#70725" +msgid "Select the language" +msgstr "" + +msgctxt "#70726" +msgid "Seleziona la qualità" +msgstr "" + +msgctxt "#70727" +msgid "Include in News" +msgstr "" + +msgctxt "#70728" +msgid "Include in Global Search" +msgstr "" diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index 8af5087e..2ad48d12 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -171,7 +171,11 @@ msgstr "aggiunto ai preferiti" msgctxt "#30109" msgid "added to download list" -msgstr "aggiunto alla lista download" +msgstr "aggiunto/i alla lista download" + +msgctxt "#30110" +msgid " Episodes of: " +msgstr " Episodi di: " msgctxt "#30112" msgid "Enter title to search" @@ -217,6 +221,14 @@ msgctxt "#30131" msgid "Videolibrary" msgstr "Videoteca" +msgctxt "#30132" +msgid "It seems that the Channel %s no longer exists." +msgstr "Sembra che il canale %s non esista più." + +msgctxt "#30133" +msgid "Do you want to remove links from this channel?" +msgstr "Vuoi rimuovere i collegamenti da questo canale?" + msgctxt "#30135" msgid "added to the videolibrary" msgstr "aggiunto alla libreria" @@ -1770,8 +1782,8 @@ msgid " and quality %s" msgstr " e qualità %s" msgctxt "#60432" -msgid "[COLOR %s]No results in this language '%s'%s, click to show without filter[/COLOR]" -msgstr "[COLOR %s]Nessun risultato in questa lingua '%s'%s, clicca per mostrare senza filtro[/COLOR]" +msgid "[B]No results in this language '%s'%s, click to show without filter[/B]" +msgstr "[B]Nessun risultato in questa lingua '%s'%s, clicca per mostrare senza filtro[/B]" msgctxt "#60433" msgid " (disabled)" @@ -3223,7 +3235,7 @@ msgstr "Attivare Pagina iniziale" msgctxt "#70122" msgid "Custom (select from a channel)" -msgstr "Personalizato (selezionare da un canale)" +msgstr "Personalizzato (selezionare da un canale)" msgctxt "#70123" msgid "Show Recent" @@ -5594,8 +5606,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 ergo sites, not all Channels will work. We recommend that you set up your DNS to take advantage of more channels. Search your favorite search engine how to set them up on your device." -msgstr "Gentile Utente, i tuoi DNS attuali non ti permettono di raggiungere tutti i siti, ergo, non tutti i Canali funzioneranno. Ti consigliamo, per usufruire di un maggior numero di canali, di impostare i DNS. Cerca sul tuo motore di ricerca preferito come impostarli sul tuo dispositivo." +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" msgctxt "#70723" msgid "links in the folder" @@ -5603,4 +5615,20 @@ msgstr "collegamenti nella cartella" msgctxt "#70724" msgid "Channel" -msgstr "Canale" \ No newline at end of file +msgstr "Canale" + +msgctxt "#70725" +msgid "Select the language" +msgstr "Seleziona la lingua" + +msgctxt "#70726" +msgid "Seleziona la qualità" +msgstr "Select the quality" + +msgctxt "#70727" +msgid "Include in News" +msgstr "Includi in Novità" + +msgctxt "#70728" +msgid "Include in Global Search" +msgstr "Includi in Ricerca Globale" diff --git a/specials/checkhost.py b/specials/checkhost.py old mode 100755 new mode 100644 index 7d961a25..c673e62b --- a/specials/checkhost.py +++ b/specials/checkhost.py @@ -67,7 +67,7 @@ class Kdicc(): http_errr = 0 for rslt in r: xbmc.log("check_Adsl rslt: %s" % rslt['code'], level=xbmc.LOGNOTICE) - if rslt['code'] == '111': + if rslt['code'] == '111' or '[Errno -3]' in str(rslt['code']): http_errr +=1 if len(LIST_SITE) == http_errr: @@ -133,12 +133,13 @@ class Kdicc(): # gli errori vengono inglobati in code = '111' in quanto in quel momento # non vengono raggiunti per una qualsiasi causa if '[Errno 111]' in str(conn_errr) or 'Errno 10061' in str(conn_errr) \ + or '[Errno 110]' in str(conn_errr) \ or 'ConnectTimeoutError' in str(conn_errr) \ or 'Errno 11002' in str(conn_errr) or 'ReadTimeout' in str(conn_errr) \ or 'Errno 11001' in str(conn_errr): # questo errore è anche nel code: -2 rslt['code'] = '111' rslt['url'] = str(sito) - rslt['http_err'] = 'Connection refused' + rslt['http_err'] = 'Connection error' else: rslt['code'] = conn_errr rslt['url'] = str(sito) @@ -197,7 +198,6 @@ def test_conn(is_exit, check_dns, view_msg, # import web_pdb; web_pdb.set_trace() ktest = Kdicc(is_exit, check_dns, view_msg, lst_urls, lst_site_check_dns, in_addon) - # se non ha l'ip lo comunico all'utente if not ktest.check_Ip(): # non permetto di entrare nell'addon