fix iqiyi playlist extrator

This commit is contained in:
jseagull 2020-09-14 15:28:29 +08:00
parent 80d88a1331
commit 398068e13e

View File

@ -119,10 +119,10 @@ class Iqiyi(VideoExtractor):
self.url = url
video_page = get_content(url)
videos = set(re.findall(r'<a href="(http://www\.iqiyi\.com/v_[^"]+)"', video_page))
videos = set(re.findall(r'<a href="(?=https?:)?(//www\.iqiyi\.com/v_[^"]+)"', video_page))
for video in videos:
self.__class__().download_by_url(video, **kwargs)
self.__class__().download_by_url('https:' + video, **kwargs)
def prepare(self, **kwargs):
assert self.url or self.vid