[premier.one] Fix parsing last page of a playlist

This commit is contained in:
Sergey Susikov 2021-03-03 17:28:50 +02:00
parent a44733c638
commit 260e0c132a

View File

@ -95,7 +95,7 @@ class PremierOneIE(InfoExtractor):
'Accept': 'application/json',
'Referer': 'https://premier.one/show/' + show_id + '/season/' + str(season.get('number'))
})
while metainfo and (metainfo.get('page') == 1 or metainfo.get('has_next')):
while metainfo and len(metainfo.get('results')) > 0:
for item in metainfo.get('results'):
video_id = item.get('id')
if not video_id: