Skip to content

Commit

Permalink
fix pagination for empty urls
Browse files Browse the repository at this point in the history
Signed-off-by: Sandmann79 <sandmann79@gmx.net>
  • Loading branch information
Sandmann79 committed Mar 21, 2023
1 parent 5134659 commit 831e9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.video.amazon-test/resources/lib/web_api.py
Expand Up @@ -1502,7 +1502,7 @@ def ParseSinglePage(oid, o, bCacheRefresh, data=None, url=None):
except:
# Classic numbered pagination
if 'pagination' in cnt:
if 'url' in cnt['pagination']:
if 'url' in cnt['pagination'] and cnt['pagination']['url'] != '':
nextPage = cnt['pagination']['url'] # + '&isCrow=0&isElcano=0&isCleanSlateActive=1&isLivePageActive=0&isDiscoverActive=1'
elif 'paginator' in cnt['pagination']:
nextPage = next((x['href'] for x in cnt['pagination']['paginator'] if
Expand Down

0 comments on commit 831e9be

Please sign in to comment.