1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 03:32:05 +00:00

[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', 'Accept': 'application/json',
'Referer': 'https://premier.one/show/' + show_id + '/season/' + str(season.get('number')) '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'): for item in metainfo.get('results'):
video_id = item.get('id') video_id = item.get('id')
if not video_id: if not video_id: