aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-27 02:09:59 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-27 02:09:59 +0200
commitaff216edf4aa7536924a7496686a7a6b6d0f15af (patch)
tree713a39f8dc39291ecc07aa10faec808ab03cd924
parent1cb6dcdbbe357da3abab9dcc1f2d57ff73f1835d (diff)
[generic] Prevent <video> search from skipping over empty sources (#3546)
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 6622df81e..6961dfec7 100644
--- 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")'