projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beee53d
)
[generic] Fix redirect
author
Sergey M․
<dstftw@gmail.com>
Fri, 16 May 2014 13:32:53 +0000
(20:32 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 16 May 2014 13:32:53 +0000
(20:32 +0700)
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)