]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[extractor/common] Add container meta field for formats extracted in _parse_mpd_formats
authorOndřej Caletka <ondrej@caletka.cz>
Sat, 30 Dec 2017 21:02:46 +0000 (22:02 +0100)
committerSergey M․ <dstftw@gmail.com>
Sat, 30 Dec 2017 21:04:09 +0000 (04:04 +0700)
youtube_dl/extractor/common.py

index 5e7e7a3f7b0348b4591e35af926eb3fccb7f270c..5b6a09c0b7f732ef5e9361775e42719af0deb8b7 100644 (file)
@@ -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)