[generic] Prevent <video> search from skipping over empty sources (#3546)

pull/3608/head
Philipp Hagemeister 10 years ago
parent 1cb6dcdbbe
commit aff216edf4

@ -837,7 +837,7 @@ class GenericIE(InfoExtractor):
re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage))) re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))
if not found: if not found:
# HTML5 video # HTML5 video
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage) found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]+)? src="([^"]+)"', webpage)
if not found: if not found:
found = re.search( found = re.search(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")' r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'

Loading…
Cancel
Save