
.*?' # img, title
patron += '
(.*?)
' # plot
matches = re.compile(patron, re.DOTALL).findall(data)
for scrapedurl, scrapedthumbnail, scrapedtitle, plot in matches:
itemlist.append(item.clone(title=scrapedtitle, url=scrapedurl, contentTitle=scrapedtitle,
action="findvideos", text_color=color3, page=0, plot=plot,
thumbnail=host + scrapedthumbnail))
pagination = scrapertools.find_single_match(data, 'class="pnext">
')
if pagination:
itemlist.append(Item(channel=__channel__, action="sub_search",
title="» Siguiente »", url=pagination))
tmdb.set_infoLabels(itemlist)
return itemlist
def movies(item):
logger.info()
itemlist = []
data = httptools.downloadpage(item.url).data
data = re.sub(r"\n|\r|\t|\(.*?\)|\s{2}| ", "", data)
patron = '.*?' # quality
patron += 'Año: ([^<]+)' # year
matches = scrapertools.find_multiple_matches(data, patron)
for scrapedurl, scrapedtitle, scrapedthumbnail, quality, year in matches[item.page:item.page + 25]:
scrapedthumbnail = urlparse.urljoin(item.url, scrapedthumbnail)
title = "%s [COLOR yellow][%s][/COLOR]" % (scrapedtitle, quality)
itemlist.append(Item(channel=__channel__, action="findvideos", text_color=color3,
url=scrapedurl, infoLabels={'year': year.strip()},
contentTitle=scrapedtitle, thumbnail=scrapedthumbnail,
title=title, context="buscar_trailer"))
tmdb.set_infoLabels_itemlist(itemlist, __modo_grafico__)
if item.page + 25 < len(matches):
itemlist.append(item.clone(page=item.page + 25,
title="» Siguiente »", text_color=color3))
else:
next_page = scrapertools.find_single_match(
data, 'class="pnext">