Fix Pagina Successiva in ricerca IMDB

This commit is contained in:
Alhaziel
2019-09-03 11:55:11 +02:00
parent 179beb2a4c
commit 4db1db9bcf
+4 -3
View File
@@ -986,10 +986,11 @@ def listado_imdb(item):
next_page = scrapertools.find_single_match(data, '<a href="([^"]+)"[^>]*>Next')
if next_page:
if not "title_type" in item.url:
next_page = 'http://www.imdb.com' + next_page
else:
next_page = 'http://www.imdb.com/search/title' + next_page
# if not "title_type" in item.url:
# next_page = 'http://www.imdb.com' + next_page
# else:
# next_page = 'http://www.imdb.com/search/title' + next_page
itemlist.append(item.clone(title=config.get_localized_string(70065), url=next_page, ))
return itemlist