1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 01:52:51 +08:00

[iqiyi] Fix extraction playlist

This commit is contained in:
AnyISalIn 2019-02-14 15:07:02 +08:00
parent 4345f57a57
commit a5a940edb6

View File

@ -307,13 +307,15 @@ class IqiyiIE(InfoExtractor):
PAGE_SIZE = 50
links = re.findall(
r'<a[^>]+class="site-piclist_pic_link"[^>]+href="(http://www\.iqiyi\.com/.+\.html)"',
r'<a[^>]+class="site-piclist_pic_link"[^>]+href="(//www\.iqiyi\.com/.+\.html)"',
webpage)
# add https prefix
links = ['https:{}'.format(link) for link in links]
if not links:
return
album_id = self._search_regex(
r'albumId\s*:\s*(\d+),', webpage, 'album ID')
r'albumId\s*:\s*"(\d+)",', webpage, 'album ID')
album_title = self._search_regex(
r'data-share-title="([^"]+)"', webpage, 'album title', fatal=False)