1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 02:22:52 +08:00

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

This commit is contained in:
Philipp Hagemeister 2014-08-27 02:09:59 +02:00
parent 1cb6dcdbbe
commit aff216edf4

View File

@ -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")'