From: Christian Pointner Date: Fri, 2 Sep 2016 23:50:26 +0000 (+0200) Subject: Fix parsing of HTML5 media elements X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=dedb1770295d214225a3a31b5f99da877cf01eee;p=youtube-dl 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 elements in it's body. --- 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: