A feature-rich command-line audio/video downloader
[generic] Capture <audio> tags in addition to <video> tags
felix12439dd5ec46
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.pyindex 953ec32c3f..ec748ed9f4 100644--- a/youtube_dl/extractor/generic.py+++ b/youtube_dl/extractor/generic.py@@ -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(