From 7c8f5d95d588e6d855dfa8ea431877885e7707a2 Mon Sep 17 00:00:00 2001
From: Intel1 <25161862+Intel11@users.noreply.github.com>
Date: Mon, 16 Oct 2017 14:51:50 -0500
Subject: [PATCH] fix newpct1
---
plugin.video.alfa/channels/newpct1.py | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/plugin.video.alfa/channels/newpct1.py b/plugin.video.alfa/channels/newpct1.py
index d64b241b..ae393d51 100644
--- a/plugin.video.alfa/channels/newpct1.py
+++ b/plugin.video.alfa/channels/newpct1.py
@@ -98,10 +98,10 @@ def listado(item):
fichas = data
page_extra = item.extra
- patron = '
]+>.*?' # thumbnail
- patron += '([^<]*)' # calidad
+ patron = ']+>.*?' # el thumbnail
+ patron += '([^<].*?)<' # la calidad
matches = re.compile(patron, re.DOTALL).findall(fichas)
logger.debug('item.next_page: %s'%item.next_page)
@@ -167,14 +167,12 @@ def listado(item):
logger.debug('context: %s' % context)
if not 'array' in title:
- new_item = Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail,
+ itemlist.append(Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail,
extra = extra,
show = context_title, contentTitle=context_title, contentType=context,
- context=["buscar_trailer"], infoLabels= {'year':year})
- if year:
- tmdb.set_infoLabels_item(new_item, seekTmdb = True)
- itemlist.append(new_item)
+ context=["buscar_trailer"], infoLabels= {'year':year}))
+ tmdb.set_infoLabels(itemlist, True)