diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-03 01:50:26 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-09-03 16:09:35 +0700 |
commit | dedb1770295d214225a3a31b5f99da877cf01eee (patch) | |
tree | 706301cc54eceba3c213cd6280b791d3042eac08 /youtube_dl/extractor/common.py | |
parent | 86c3bbbcede6efa175f5a93e02511fe32585521f (diff) |
Fix parsing of HTML5 media elements
This fixes an error in _parse_html5_media_entries in case
an audio or video tag directly uses a src attribute insted
of <source> elements in it's body.
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index a9c7a8d16..a82968162 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1749,7 +1749,7 @@ class InfoExtractor(object): media_attributes = extract_attributes(media_tag) src = media_attributes.get('src') if src: - _, formats = _media_formats(src) + _, formats = _media_formats(src, media_type) media_info['formats'].extend(formats) media_info['thumbnail'] = media_attributes.get('poster') if media_content: |