mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 09:17:48 +00:00
parent
7012620e2b
commit
29e7e0781b
1 changed files with 3 additions and 4 deletions
|
@ -161,12 +161,11 @@ class IqiyiIE(InfoExtractor):
|
||||||
webpage = self._download_webpage(
|
webpage = self._download_webpage(
|
||||||
url, 'temp_id', note='download video page')
|
url, 'temp_id', note='download video page')
|
||||||
tvid = self._search_regex(
|
tvid = self._search_regex(
|
||||||
r'tvId ?= ?(\'|\")(?P<tvid>\d+)', webpage, 'tvid', flags=re.I, group='tvid')
|
r'data-player-tvid\s*=\s*[\'"](\d+)', webpage, 'tvid')
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
r'videoId ?= ?(\'|\")(?P<video_id>[a-z\d]+)',
|
r'data-player-videoid\s*=\s*[\'"]([a-f\d]+)', webpage, 'video_id')
|
||||||
webpage, 'video_id', flags=re.I, group='video_id')
|
|
||||||
swf_url = self._search_regex(
|
swf_url = self._search_regex(
|
||||||
r'(?P<swf>http://.+?MainPlayer.+?\.swf)', webpage, 'swf')
|
r'(http://.+?MainPlayer.+?\.swf)', webpage, 'swf player URL')
|
||||||
_uuid = uuid.uuid4().hex
|
_uuid = uuid.uuid4().hex
|
||||||
|
|
||||||
enc_key = self.get_enc_key(swf_url, video_id)
|
enc_key = self.get_enc_key(swf_url, video_id)
|
||||||
|
|
Loading…
Reference in a new issue