From a5a940edb6b9d1913898573832f7d65036fef829 Mon Sep 17 00:00:00 2001 From: AnyISalIn Date: Thu, 14 Feb 2019 15:07:02 +0800 Subject: [PATCH] [iqiyi] Fix extraction playlist --- youtube_dl/extractor/iqiyi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/iqiyi.py b/youtube_dl/extractor/iqiyi.py index 88ddb8ec0..f29bfc395 100644 --- a/youtube_dl/extractor/iqiyi.py +++ b/youtube_dl/extractor/iqiyi.py @@ -307,13 +307,15 @@ class IqiyiIE(InfoExtractor): PAGE_SIZE = 50 links = re.findall( - r']+class="site-piclist_pic_link"[^>]+href="(http://www\.iqiyi\.com/.+\.html)"', + r']+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)