From 6fd6d5bdc3bcc3d27999e346614c1e25ae021195 Mon Sep 17 00:00:00 2001 From: SunG0011 <31815624+SunG0011@users.noreply.github.com> Date: Mon, 17 Apr 2023 17:21:03 +0800 Subject: [PATCH] Update iqiyi.py Some links cannot be parsed normally. badcase: https://www.iqiyi.com/v_zppp3pw658.html --- src/you_get/extractors/iqiyi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/iqiyi.py b/src/you_get/extractors/iqiyi.py index 16bf45d3..2ebf0a4f 100644 --- a/src/you_get/extractors/iqiyi.py +++ b/src/you_get/extractors/iqiyi.py @@ -131,10 +131,10 @@ class Iqiyi(VideoExtractor): html = get_html(self.url) tvid = r1(r'#curid=(.+)_', self.url) or \ r1(r'tvid=([^&]+)', self.url) or \ - r1(r'data-player-tvid="([^"]+)"', html) or r1(r'tv(?:i|I)d=(\w+?)\&', html) or r1(r'param\[\'tvid\'\]\s*=\s*"(.+?)"', html) + r1(r'data-player-tvid="([^"]+)"', html) or r1(r'tv(?:i|I)d=(\w+?)\&', html) or r1(r'param\[\'tvid\'\]\s*=\s*"(.+?)"', html) or r1(r'"tvid":(\d*?),', html) videoid = r1(r'#curid=.+_(.*)$', self.url) or \ r1(r'vid=([^&]+)', self.url) or \ - r1(r'data-player-videoid="([^"]+)"', html) or r1(r'vid=(\w+?)\&', html) or r1(r'param\[\'vid\'\]\s*=\s*"(.+?)"', html) + r1(r'data-player-videoid="([^"]+)"', html) or r1(r'vid=(\w+?)\&', html) or r1(r'param\[\'vid\'\]\s*=\s*"(.+?)"', html) or r1(r'"tvid":(\d*?),', html) self.vid = (tvid, videoid) info_u = 'http://pcw-api.iqiyi.com/video/video/playervideoinfo?tvid=' + tvid json_res = get_content(info_u)