From e30ae8c2484076806a7248e7224483691a4ea7bb Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Wed, 6 Jun 2018 19:04:26 +0200 Subject: [PATCH] =?UTF-8?q?Clones=20NewPct1:=20mejoras=20internas,=20gesti?= =?UTF-8?q?=C3=B3n=20de=20errores=20y=20Videoteca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mejoras internas Menú de configuración: Selección de utilización de TMDB o no Gestión de errores, con descripción Gestión dinámica de Videoteca, con actualización de sólo la última temporada --- plugin.video.alfa/channels/descargas2020.json | 12 +- plugin.video.alfa/channels/descargas2020.py | 122 +++++++++++++----- .../channels/mispelisyseries.json | 12 +- plugin.video.alfa/channels/mispelisyseries.py | 122 +++++++++++++----- plugin.video.alfa/channels/torrentlocura.json | 11 +- plugin.video.alfa/channels/torrentlocura.py | 122 +++++++++++++----- plugin.video.alfa/channels/torrentrapid.json | 12 +- plugin.video.alfa/channels/torrentrapid.py | 122 +++++++++++++----- .../channels/tumejortorrent.json | 12 +- plugin.video.alfa/channels/tumejortorrent.py | 122 +++++++++++++----- plugin.video.alfa/channels/tvsinpagar.json | 12 +- plugin.video.alfa/channels/tvsinpagar.py | 122 +++++++++++++----- 12 files changed, 617 insertions(+), 186 deletions(-) diff --git a/plugin.video.alfa/channels/descargas2020.json b/plugin.video.alfa/channels/descargas2020.json index d159b644..6b050955 100755 --- a/plugin.video.alfa/channels/descargas2020.json +++ b/plugin.video.alfa/channels/descargas2020.json @@ -11,7 +11,9 @@ "tvshow", "anime", "torrent", - "documentary" + "documentary", + "vos", + "direct" ], "settings": [ { @@ -30,6 +32,14 @@ "enabled": true, "visible": true }, + { + "id": "seleccionar_ult_temporadda_activa", + "type": "bool", + "label": "Seleccionar para Videoteca si estará activa solo la última Temporada", + "default": true, + "enabled": true, + "visible": true + }, { "id": "clonenewpct1_ver_enlaces_veronline", "type": "list", diff --git a/plugin.video.alfa/channels/descargas2020.py b/plugin.video.alfa/channels/descargas2020.py index 906edb96..19d1e88b 100644 --- a/plugin.video.alfa/channels/descargas2020.py +++ b/plugin.video.alfa/channels/descargas2020.py @@ -19,6 +19,7 @@ item = Item() if not item.channel: item.channel = scrapertools.find_single_match(host, r'(\w+)\.com\/') __modo_grafico__ = config.get_setting('modo_grafico', item.channel) +modo_ultima_temp = config.get_setting('seleccionar_ult_temporadda_activa', item.channel) def mainlist(item): logger.info() @@ -80,7 +81,7 @@ def submenu(item): data = scrapertools.get_match(data, patron) if not data: logger.error("ERROR 02: SUBMENU: Ha cambiado la estructura de la Web " + " / PATRON: " + patron + " / DATA: " + data) - itemlist.append(item.clone(action='', title=item.channel.capitalize() + 'ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) + itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos else: return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos @@ -89,7 +90,7 @@ def submenu(item): matches = re.compile(patron, re.DOTALL).findall(data) if not matches: logger.error("ERROR 02: SUBMENU: Ha cambiado la estructura de la Web " + " / PATRON: " + patron + " / DATA: " + data) - itemlist.append(item.clone(action='', title=item.channel.capitalize() + 'ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) + itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos for scrapedurl, scrapedtitle in matches: @@ -126,7 +127,7 @@ def alfabeto(item): matches = re.compile(patron, re.DOTALL).findall(data) if not matches: logger.error("ERROR 02: SUBMENU: Ha cambiado la estructura de la Web " + " / PATRON: " + patron + " / DATA: " + data) - itemlist.append(item.clone(action='', title=item.channel.capitalize() + 'ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) + itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 02: SUBMENU: Ha cambiado la estructura de la Web. Reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos for scrapedurl, scrapedtitle in matches: @@ -156,7 +157,7 @@ def listado(item): data = re.sub(r"\n|\r|\t|\s{2}|()", "", httptools.downloadpage(item.url).data) except: logger.error("ERROR 01: LISTADO: La Web no responde o ha cambiado de URL " + " / DATA: " + data) - itemlist.append(item.clone(action='', title=item.channel.capitalize() + 'ERROR 01: LISTADO:. La Web no responde o ha cambiado de URL. Si la Web está activa, reportar el error con el log')) + itemlist.append(item.clone(action='', title=item.channel.capitalize() + ': ERROR 01: LISTADO:. La Web no responde o ha cambiado de URL. Si la Web está activa, reportar el error con el log')) return itemlist #si no hay más datos, algo no funciona, pintamos lo que tenemos #Establecemos los valores básicos en función del tipo de contenido @@ -177,10 +178,12 @@ def listado(item): patron = '