aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/iqiyi.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-06-07 02:39:03 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-06-07 02:39:03 +0800
commit9c5f685ef14a8b44d17b897ba8ae2da051011c35 (patch)
tree4d8490bd7e3f4ac1e6b6ac972750de38a33ca705 /youtube_dl/extractor/iqiyi.py
parent08bb8ef2011d795948d8e89478bf3afe4b99405f (diff)
[iqiyi] Improve regex pattern again
Diffstat (limited to 'youtube_dl/extractor/iqiyi.py')
-rw-r--r--youtube_dl/extractor/iqiyi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/iqiyi.py b/youtube_dl/extractor/iqiyi.py
index 122f33692..15481b84b 100644
--- a/youtube_dl/extractor/iqiyi.py
+++ b/youtube_dl/extractor/iqiyi.py
@@ -223,7 +223,7 @@ class IqiyiIE(InfoExtractor):
video_id = self._search_regex(
r'data-player-videoid\s*=\s*[\'"]([a-f\d]+)', webpage, 'video_id')
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
enc_key = self.get_enc_key(swf_url, video_id)