Fix Pagina Successiva in ricerca IMDB

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