mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
narrow the search of tvid and videoid
test script `python3 you-get https://www.iqiyi.com/a_19rrha613h.html -l --debug`
This commit is contained in:
parent
9f7892b73f
commit
9a6878ee6e
@ -131,10 +131,10 @@ class Iqiyi(VideoExtractor):
|
|||||||
html = get_html(self.url)
|
html = get_html(self.url)
|
||||||
tvid = r1(r'#curid=(.+)_', self.url) or \
|
tvid = r1(r'#curid=(.+)_', self.url) or \
|
||||||
r1(r'tvid=([^&]+)', self.url) or \
|
r1(r'tvid=([^&]+)', self.url) or \
|
||||||
r1(r'data-player-tvid="([^"]+)"', html) or r1(r'tv(?:i|I)d=(.+?)\&', 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)
|
||||||
videoid = r1(r'#curid=.+_(.*)$', self.url) or \
|
videoid = r1(r'#curid=.+_(.*)$', self.url) or \
|
||||||
r1(r'vid=([^&]+)', self.url) or \
|
r1(r'vid=([^&]+)', self.url) or \
|
||||||
r1(r'data-player-videoid="([^"]+)"', html) or r1(r'vid=(.+?)\&', 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)
|
||||||
self.vid = (tvid, videoid)
|
self.vid = (tvid, videoid)
|
||||||
info_u = 'http://pcw-api.iqiyi.com/video/video/playervideoinfo?tvid=' + tvid
|
info_u = 'http://pcw-api.iqiyi.com/video/video/playervideoinfo?tvid=' + tvid
|
||||||
json_res = get_content(info_u)
|
json_res = get_content(info_u)
|
||||||
|
Loading…
Reference in New Issue
Block a user