[generic] Capture <audio> tags in addition to <video> tags

pull/6771/head
felix 2015-09-03 07:13:05 +02:00 zatwierdzone przez Sergey M․
rodzic 3513d41436
commit 12439dd5ec
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1797,7 +1797,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[^>]*)?\s+src=["\'](.*?)["\']', webpage)
found = re.findall(r'(?s)<(?:video|audio)[^<]*(?:>.*?<source[^>]*)?\s+src=["\'](.*?)["\']', webpage)
if not found:
REDIRECT_REGEX = r'[0-9]{,2};\s*(?:URL|url)=\'?([^\'"]+)'
found = re.search(