([^<]+)
.*?' # title + patron += '([^<]+).*?' # year + + matches = scrapertools.find_multiple_matches(data, patron) + + for scrapedurl, scrapedthumbnail, tipo, scrapedtitle, year in matches[item.page:item.page + 30]: + if item.title == 'Buscar' and 'serie' in scrapedurl: + action = 'temporadas' + contentType = 'tvshow' + title = scrapedtitle + '[COLOR blue] (Serie)[/COLOR]' + else: + action = 'findvideos' + contentType = 'movie' + title = scrapedtitle + + itemlist.append(item.clone(channel=__channel__, action=action, text_color=color3, show=scrapedtitle, + url=scrapedurl, infoLabels={'year': year}, contentType=contentType, + contentTitle=scrapedtitle, thumbnail='https:' + scrapedthumbnail, + title=title, context="buscar_trailer")) + + tmdb.set_infoLabels_itemlist(itemlist, __modo_grafico__) + + if item.page + 30 < len(matches): + itemlist.append(item.clone(page=item.page + 30, + title="» Siguiente »", text_color=color3)) + else: + next_page = scrapertools.find_single_match(data, '') + if next_page: + itemlist.append(item.clone(url=next_page, page=0, title="» Siguiente »", text_color=color3)) + + return itemlist + + +def genresYears(item): + logger.info() + itemlist = [] + data = httptools.downloadpage(item.url).data + data = re.sub(r"\n|\r|\t|\(.*?\)| |", "", data) + data = scrapertools.decodeHtmlentities(data) + + if item.title == "Estrenos por Año": + patron_todas = 'ESTRENOS(.*?) Géneros' + else: + patron_todas = 'Géneros