1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-26 01:26:45 +00:00

[iqiyi] Improve regex pattern again

This commit is contained in:
Yen Chi Hsuan 2015-06-07 02:39:03 +08:00
parent 08bb8ef201
commit 9c5f685ef1

View file

@ -223,7 +223,7 @@ class IqiyiIE(InfoExtractor):
video_id = self._search_regex( video_id = self._search_regex(
r'data-player-videoid\s*=\s*[\'"]([a-f\d]+)', webpage, 'video_id') r'data-player-videoid\s*=\s*[\'"]([a-f\d]+)', webpage, 'video_id')
swf_url = self._search_regex( swf_url = self._search_regex(
r'(http://.+?MainPlayer.+?\.swf)', webpage, 'swf player URL') 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)