projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
5c30b26
)
Merge remote-tracking branch 'origin/master'
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 16 May 2014 13:52:01 +0000
(15:52 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 16 May 2014 13:52:01 +0000
(15:52 +0200)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 1ae55dc5a2afc32cd0f60b74a38c9ee2724ab860..2861332826b5f20cdf0493edfdba8a7a12f357a8 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-672,7
+672,7
@@
class GenericIE(InfoExtractor):
# HTML5 video
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage)
if not found:
- found = re.
findall
(
+ found = re.
search
(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'
r'(?:[a-z-]+="[^"]+"\s+)*?content="[0-9]{,2};url=\'([^\']+)\'"',
webpage)