diff --git a/plugin.video.alfa/channels/ecarteleratrailers.py b/plugin.video.alfa/channels/ecarteleratrailers.py index a6bfb4dd..04ad7129 100755 --- a/plugin.video.alfa/channels/ecarteleratrailers.py +++ b/plugin.video.alfa/channels/ecarteleratrailers.py @@ -41,7 +41,7 @@ def mainlist(item): logger.debug("title=[" + title + "], url=[" + url + "], thumbnail=[" + thumbnail + "]") itemlist.append( Item(channel=item.channel, action="play", title=title, url=url, thumbnail=thumbnail, fanart=thumbnail, - plot=plot, server="directo", folder=False)) + plot=plot,folder=False)) # ------------------------------------------------------ # Extrae la página siguiente diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py index 196b72ba..86252ecc 100644 --- a/plugin.video.alfa/channels/hdfull.py +++ b/plugin.video.alfa/channels/hdfull.py @@ -273,13 +273,13 @@ def listado_series(item): def fichas(item): logger.info() itemlist = [] - + textoidiomas='' + infoLabels=dict() ## Carga estados status = jsontools.load(httptools.downloadpage(host + '/a/status/all').data) if item.title == "Buscar...": data = agrupa_datos(httptools.downloadpage(item.url, post=item.extra).data) - s_p = scrapertools.get_match(data, '
([^<]+)')
- itemlist.append(Item(channel=item.channel, action='findvideos', title=scrapedtitle, url=scrapedurl,
- thumbnail=scrapedthumbnail, plot=dataplot, contentTitle=scrapedtitle, extra=item.extra))
+ patron = '(.*?)<.*?span>(.*?)<.*? (.*?)<'
+ matches = re.compile(patron, re.DOTALL).findall(listado)
+
+ for scrapedurl, scrapedthumbnail, scrapedtitle, year, plot in matches:
+ itemlist.append(Item(channel=item.channel, action='findvideos', title=scrapedtitle, url=scrapedurl,
+ thumbnail=scrapedthumbnail, plot=plot, contentTitle=scrapedtitle, extra=item.extra,
+ infoLabels ={'year':year}))
+
+ tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
# Paginacion
if itemlist != []:
patron = '
", "", data)
listado1 = scrapertools.find_single_match(data,
'