projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68acdbd
)
[generic] Fix HTML5 video regexp
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 28 Oct 2014 09:41:24 +0000
(10:41 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 28 Oct 2014 09:41:24 +0000
(10:41 +0100)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 35a7664b25a9884891c277018c6b0b60b1057cb0..47580328abc53f1d16f3d45adcdbb16f4f69d8ea 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-933,7
+933,7
@@
class GenericIE(InfoExtractor):
found = filter_video(re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage))
if not found:
# HTML5 video
- found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]
+)?
src="([^"]+)"', webpage)
+ found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]
*)?\s+
src="([^"]+)"', webpage)
if not found:
found = re.search(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'