mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-28 13:11:49 +00:00
Fixed key error when trying to get next page of playlist and qiyi only gives code A00004
This commit is contained in:
parent
c9b8f99019
commit
88eeec3693
1 changed files with 7 additions and 4 deletions
|
@ -323,10 +323,13 @@ class IqiyiIE(InfoExtractor):
|
||||||
errnote='Failed to download playlist page %d' % page_num)
|
errnote='Failed to download playlist page %d' % page_num)
|
||||||
pagelist = self._parse_json(
|
pagelist = self._parse_json(
|
||||||
remove_start(pagelist_page, 'var tvInfoJs='), album_id)
|
remove_start(pagelist_page, 'var tvInfoJs='), album_id)
|
||||||
vlist = pagelist['data']['vlist']
|
if 'data' in pagelist:
|
||||||
for item in vlist:
|
vlist = pagelist['data']['vlist']
|
||||||
entries.append(self.url_result(item['vurl']))
|
for item in vlist:
|
||||||
if len(vlist) < PAGE_SIZE:
|
entries.append(self.url_result(item['vurl']))
|
||||||
|
if len(vlist) < PAGE_SIZE:
|
||||||
|
break
|
||||||
|
else:
|
||||||
break
|
break
|
||||||
|
|
||||||
return self.playlist_result(entries, album_id, album_title)
|
return self.playlist_result(entries, album_id, album_title)
|
||||||
|
|
Loading…
Reference in a new issue