From 3d2272e26cf63a3318f392b6e252924a7802af81 Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 9 May 2018 12:20:53 -0500 Subject: [PATCH 1/2] =?UTF-8?q?allcalidad:=20fix=20tmdb=20cuando=20no=20ha?= =?UTF-8?q?y=20a=C3=B1o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin.video.alfa/channels/allcalidad.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/allcalidad.py b/plugin.video.alfa/channels/allcalidad.py index 58d9bfa2..3f1f56a7 100755 --- a/plugin.video.alfa/channels/allcalidad.py +++ b/plugin.video.alfa/channels/allcalidad.py @@ -136,6 +136,12 @@ def peliculas(item): def findvideos(item): itemlist = [] data = httptools.downloadpage(item.url).data + if not item.infoLabels["year"]: + item.infoLabels["year"] = scrapertools.find_single_match(data, 'dateCreated.*?(\d{4})') + if "orig_title" in data: + contentTitle = scrapertools.find_single_match(data, 'orig_title.*?>([^<]+)<').strip() + if contentTitle != "": + item.contentTitle = contentTitle patron = '(?s)fmi(.*?)thead' bloque = scrapertools.find_single_match(data, patron) match = scrapertools.find_multiple_matches(bloque, '(?is)(?:iframe|script) .*?src="([^"]+)') @@ -173,7 +179,7 @@ def findvideos(item): if config.get_videolibrary_support(): itemlist.append(Item(channel=item.channel, title="AƱadir a la videoteca", text_color="green", action="add_pelicula_to_library", url=item.url, thumbnail = item.thumbnail, - fulltitle = item.fulltitle + contentTitle = item.contentTitle )) return itemlist From 70b54a939f6e08821854416814391468579a02ad Mon Sep 17 00:00:00 2001 From: Intel1 <25161862+Intel11@users.noreply.github.com> Date: Wed, 9 May 2018 12:24:12 -0500 Subject: [PATCH 2/2] cinefox: fix --- plugin.video.alfa/channels/cinefox.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugin.video.alfa/channels/cinefox.py b/plugin.video.alfa/channels/cinefox.py index a1f355be..3fabca96 100644 --- a/plugin.video.alfa/channels/cinefox.py +++ b/plugin.video.alfa/channels/cinefox.py @@ -674,13 +674,6 @@ def findvideos(item): type = item.type.replace("streaming", "Online").replace("download", "de Descarga") itemlist.extend(get_enlaces(item, url, type)) - # Requerido para FilterTools - - itemlist = filtertools.get_links(itemlist, item, list_language) - - # Requerido para AutoPlay - - autoplay.start(itemlist, item) if __comprueba_enlaces__: for it in itemlist: @@ -688,6 +681,15 @@ def findvideos(item): it.url = normalizar_url(it.url, it.server) itemlist = servertools.check_list_links(itemlist, __comprueba_enlaces_num__) + # Requerido para FilterTools + + itemlist = filtertools.get_links(itemlist, item, list_language) + + # Requerido para AutoPlay + + autoplay.start(itemlist, item) + + return itemlist def normalizar_url(url, server):