From 173f508120749ca150a7188bf6374eb50ab16f91 Mon Sep 17 00:00:00 2001 From: marco Date: Mon, 24 Feb 2020 18:08:32 +0100 Subject: [PATCH] fix lentezza cb01 --- channels/cineblog01.py | 144 +++++++++++++++++++---------------------- 1 file changed, 68 insertions(+), 76 deletions(-) diff --git a/channels/cineblog01.py b/channels/cineblog01.py index 1bc6c166..402466bc 100644 --- a/channels/cineblog01.py +++ b/channels/cineblog01.py @@ -9,7 +9,6 @@ from core import scrapertools, httptools, servertools, tmdb, support from core.item import Item from lib import unshortenit from platformcode import logger, config -from lib.concurrent import futures def findhost(): @@ -20,6 +19,7 @@ def findhost(): host = permUrl['location'] return host + host = config.get_channel_url(findhost) headers = [['Referer', host]] @@ -37,18 +37,18 @@ def mainlist(item): ('Generi', ['', 'menu', 'Film per Genere']), ('Anni', ['', 'menu', 'Film per Anno']), ('Paese', ['', 'menu', 'Film per Paese']), - ('Ultimi Aggiornati',['/lista-film-ultimi-100-film-aggiornati/', 'peliculas', 'newest']), + ('Ultimi Aggiornati', ['/lista-film-ultimi-100-film-aggiornati/', 'peliculas', 'newest']), ('Ultimi Aggiunti', ['/lista-film-ultimi-100-film-aggiunti/', 'peliculas', 'newest']) ] tvshow = ['/serietv/', - ('Per Lettera', ['/serietv/', 'menu', 'Serie-Tv per Lettera']), - ('Per Genere', ['/serietv/', 'menu', 'Serie-Tv per Genere']), - ('Per anno', ['/serietv/', 'menu', 'Serie-Tv per Anno']), - ('Ultime Aggiornate', ['/serietv/', 'peliculas', 'newest']) - ] + ('Per Lettera', ['/serietv/', 'menu', 'Serie-Tv per Lettera']), + ('Per Genere', ['/serietv/', 'menu', 'Serie-Tv per Genere']), + ('Per anno', ['/serietv/', 'menu', 'Serie-Tv per Anno']), + ('Ultime Aggiornate', ['/serietv/', 'peliculas', 'newest']) + ] docu = [('Documentari bullet bold', ['/category/documentario/', 'peliculas']), ('HD submenu', ['category/hd-alta-definizione/documentario-hd/', 'peliculas']) - ] + ] return locals() @@ -99,7 +99,7 @@ def newest(categoria): try: if categoria == "series": item.contentType = 'tvshow' - item.url = host + '/serietv/' # aggiornamento-quotidiano-serie-tv/' + item.url = host + '/serietv/' # aggiornamento-quotidiano-serie-tv/' else: item.contentType = 'movie' item.url = host + '/lista-film-ultimi-100-film-aggiunti/' @@ -133,7 +133,8 @@ def peliculas(item): # esclusione degli articoli 'di servizio' blacklist = ['BENVENUTI', 'Richieste Serie TV', 'CB01.UNO ▶ TROVA L’INDIRIZZO UFFICIALE ', 'Aggiornamento Quotidiano Serie TV', 'OSCAR 2019 ▶ CB01.UNO: Vota il tuo film preferito! 🎬', - 'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?', 'OSCAR 2020 ▶ VOTA IL TUO FILM PREFERITO! 🎬'] + 'Openload: la situazione. Benvenuto Verystream', 'Openload: lo volete ancora?', + 'OSCAR 2020 ▶ VOTA IL TUO FILM PREFERITO! 🎬'] # debug = True if 'newest' in item.args: if '/serietv/' not in item.url: @@ -157,7 +158,7 @@ def peliculas(item): # patronBlock=[r'
(?P.*?)