From c2d4c5357d9a6f9cebfc7c06e4feae7a2bbcbf7a Mon Sep 17 00:00:00 2001 From: greko17 <50103632+greko17@users.noreply.github.com> Date: Fri, 3 May 2019 17:05:04 +0200 Subject: [PATCH] Aggiornamento canale Tolte le voci su TMDB che indicavano la lingua italiana e fatto pulizia di alcuni commenti --- channels/altadefinizione01_club.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/channels/altadefinizione01_club.py b/channels/altadefinizione01_club.py index 9f769a2c..7969deb5 100644 --- a/channels/altadefinizione01_club.py +++ b/channels/altadefinizione01_club.py @@ -2,6 +2,7 @@ # -*- Channel Altadefinizione01C Film -*- # -*- Created for IcarusbyGreko -*- # -*- By Greko -*- +# -*- last change: 3/05/2019 from channelselector import get_thumb from channels import autoplay @@ -49,7 +50,7 @@ headers = [['User-Agent', 'Mozilla/50.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/ IDIOMAS = {'Italiano': 'IT'} list_language = IDIOMAS.values() -list_servers = ['openload','verystream','rapidvideo','streamango'] # per l'autoplay +list_servers = ['verystream','openload','rapidvideo','streamango'] # per l'autoplay list_quality = ['default'] #'rapidvideo', 'streamango', 'openload', 'streamcherry'] # per l'autoplay @@ -156,7 +157,7 @@ def peliculas(item): )) # se il sito permette l'estrazione dell'anno del film aggiungere la riga seguente - tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True, idioma_busqueda='it') + tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True) # Paginazione next_page = scrapertools.find_single_match(data, "") @@ -255,7 +256,7 @@ def orderalf(item): )) # se il sito permette l'estrazione dell'anno del film aggiungere la riga seguente - tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True, idioma_busqueda='it') + tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True) # Paginazione next_page = scrapertools.find_single_match(data, "") @@ -287,11 +288,9 @@ def findvideos_film(item): # da qui fare le opportuni modifiche patron = '' matches = scrapertools.find_multiple_matches(data, patron) - #logger.info("altadefinizione01_clubMATCHES: %s " % matches) + for scrapedurl in matches: logger.info("altadefinizione01_club scrapedurl log: %s" % scrapedurl) - #if 'vodexor' and 'megadrive' not in scrapedurl: - #data = httptools.downloadpage(scrapedurl, headers=headers).data try: itemlist = servertools.find_video_items(data=data) @@ -303,7 +302,6 @@ def findvideos_film(item): videoitem.contentType = item.contentType videoitem.channel = item.channel videoitem.text_color = color5 - #videoitem.language = lang_orders[4] videoitem.year = item.infoLabels['year'] videoitem.infoLabels['plot'] = item.infoLabels['plot'] except AttributeError: