projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08bb8ef
)
[iqiyi] Improve regex pattern again
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 6 Jun 2015 18:39:03 +0000
(
02:39
+0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 6 Jun 2015 18:39:03 +0000
(
02:39
+0800)
youtube_dl/extractor/iqiyi.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/iqiyi.py
b/youtube_dl/extractor/iqiyi.py
index 122f33692efcdecff2dc5da2229b6ad06c506fff..15481b84b71760a6e3a3e5cf519b86029169c8be 100644
(file)
--- 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)