浏览代码

[extractor/common] Add container meta field for formats extracted in _parse_mpd_formats

Ondřej Caletka 7 年之前
父节点
当前提交
126f225bcf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/common.py

+ 1 - 0
youtube_dl/extractor/common.py

@@ -1880,6 +1880,7 @@ class InfoExtractor(object):
                             'language': lang if lang not in ('mul', 'und', 'zxx', 'mis') else None,
                             'format_note': 'DASH %s' % content_type,
                             'filesize': filesize,
+                            'container': mimetype2ext(mime_type) + '_dash',
                         }
                         f.update(parse_codecs(representation_attrib.get('codecs')))
                         representation_ms_info = extract_multisegment_info(representation, adaption_set_ms_info)