Todopeliculas: corrección paginado

This commit is contained in:
Kingbox
2018-12-05 12:00:44 +01:00
parent e34d04e47e
commit fb14f64fcb

View File

@@ -178,7 +178,9 @@ def listado(item):
#logger.debug(data)
#Buscamos la url de paginado y la última página
patron = '<a href="([^"]+=(\d+))" title="Siguiente">Siguiente<\/a>'
patron = '<a href="([^"]+=(\d+))" title="Next">Next<\/a>'
if not scrapertools.find_single_match(data, patron):
patron = '<a href="([^"]+=(\d+))" title="Siguiente">Siguiente<\/a>'
try:
next_page_url, curr_page = scrapertools.find_single_match(data, patron)
curr_page = int(curr_page) / len(matches)