mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-21 17:51:51 +00:00
[premier.one] Fix parsing last page of a playlist
This commit is contained in:
parent
a44733c638
commit
260e0c132a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue