projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cb6dcd
)
[generic] Prevent <video> search from skipping over empty sources (#3546)
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 27 Aug 2014 00:09:59 +0000
(
02:09
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 27 Aug 2014 00:09:59 +0000
(
02:09
+0200)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index 6622df81e91a474ca2cc12525588981d5a238861..6961dfec76de7f9733cf5e7508f6870379f64a1e 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-837,7
+837,7
@@
class GenericIE(InfoExtractor):
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
[^>]+
)? src="([^"]+)"', webpage)
if not found:
found = re.search(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'