mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-23 11:36:56 +01:00
[premier.one] Fix parsing last page of a playlist
This commit is contained in:
parent
a44733c638
commit
260e0c132a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user