Browse Source

[extractor/common] Fix _media_formats

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
868f79db41
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/common.py

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

@ -2115,7 +2115,7 @@ class InfoExtractor(object):
return f
return {}
def _media_formats(src, type_info, cur_media_type):
def _media_formats(src, cur_media_type, type_info={}):
full_url = absolute_url(src)
ext = type_info.get('ext') or determine_ext(full_url)
if ext == 'm3u8':
@ -2167,7 +2167,7 @@ class InfoExtractor(object):
if not src:
continue
f = parse_content_type(source_attributes.get('type'))
is_plain_url, formats = _media_formats(src, f, media_type)
is_plain_url, formats = _media_formats(src, media_type, f)
if is_plain_url:
f.update(formats[0])
media_info['formats'].append(f)


Loading…
Cancel
Save