diff options
author | felix <felix.von.s@posteo.de> | 2015-09-03 07:13:05 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-09-05 21:53:10 +0600 |
commit | 12439dd5ec46ccac1ef13db7280473ecef44a096 (patch) | |
tree | 4cd251f1dbd59e3744c01577f7571e0e69970529 /youtube_dl/extractor/generic.py | |
parent | 3513d4143657c1bdc7da72f048a63d4b1ee794d3 (diff) |
[generic] Capture <audio> tags in addition to <video> tags
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 953ec32c3..ec748ed9f 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( |