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] =?UTF-8?q?allcalidad:=20fix=20tmdb=20cuando=20no=20hay=20?= =?UTF-8?q?a=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