Browse Source

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.
totalwebcasting
Christian Pointner 8 years ago
committed by Sergey M․
parent
commit
dedb177029
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/common.py

+ 1
- 1
youtube_dl/extractor/common.py View File

@ -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:


Loading…
Cancel
Save