From 76130a91f61f1f7cdaae5592395d1a84131ac8ef Mon Sep 17 00:00:00 2001 From: greko17 Date: Mon, 5 Aug 2019 09:51:12 +0200 Subject: [PATCH] feat: controllo e scrittura file channels.json nel menu (Redirect) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- channels.json | 6 +- channels/altadefinizione01.py | 18 +- channels/altadefinizione01_club.py | 4 +- channels/animeleggendari.py | 77 ++++--- channels/filmpertutti.json | 4 +- channels/serietvsubita.py | 353 ----------------------------- channelselector.py | 8 +- platformcode/launcher.py | 11 +- specials/checkhost.py | 105 +++++---- 9 files changed, 128 insertions(+), 458 deletions(-) delete mode 100644 channels/serietvsubita.py diff --git a/channels.json b/channels.json index d0096f4d..c76231d7 100644 --- a/channels.json +++ b/channels.json @@ -1,13 +1,13 @@ { "altadefinizione01_club": "https://www.altadefinizione01.cc", - "altadefinizione01_link": "http://altadefinizione1.link", + "altadefinizione01_link": "http://altadefinizione1.com", "altadefinizione01": "https://www.altadefinizione01.cc", "altadefinizioneclick": "https://altadefinizione.cloud", "altadefinizionehd": "https://altadefinizionetv.best", "animeforge": "https://ww1.animeforce.org", "animeleggendari": "https://animepertutti.com", "animestream": "https://www.animeworld.it", - "animespace": "https://www.animespace.tv", + "animespace": "http://www.animespace.tv", "animesubita": "http://www.animesubita.org", "animetubeita": "http://www.animetubeita.com", "animevision": "https://www.animevision.it", @@ -21,7 +21,7 @@ "dreamsub": "https://www.dreamsub.stream", "eurostreaming": "https://eurostreaming.pink", "fastsubita": "http://fastsubita.com", - "filmigratis": "https://filmigratis.net", + "filmigratis": "http://filmigratis.org", "filmgratis": "https://www.filmaltadefinizione.net", "filmontv": "https://www.comingsoon.it", "filmpertutti": "https://www.filmpertutti.pub", diff --git a/channels/altadefinizione01.py b/channels/altadefinizione01.py index 7306f0a9..d5f40fe5 100644 --- a/channels/altadefinizione01.py +++ b/channels/altadefinizione01.py @@ -8,7 +8,7 @@ from core import servertools, support, jsontools from core.item import Item from platformcode import config, logger -__channel__ = "altadefinizione01_club" +__channel__ = "altadefinizione01" host = config.get_channel_url(__channel__) @@ -22,9 +22,7 @@ list_quality = ['default'] @support.menu def mainlist(item): - film = '' - - filmSub = [ + film = [ ('Al Cinema', ['/cinema/', 'peliculas', 'pellicola']), ('Generi', ['', 'categorie', 'genres']), ('Lettera', ['/catalog/a/', 'categorie', 'orderalf']), @@ -40,17 +38,19 @@ def peliculas(item): support.log('peliculas',item) action="findvideos" - if item.args == "search": - patronBlock = r'
(.*?)
' - else: - patronBlock = r'
(.*?)