aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-03-05 18:18:39 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-03-05 18:18:39 +0800
commit2def60c5f3426e4f6b7e5f0bc8a92811e5a592b9 (patch)
treec1476c2f133c6c2f783440c380172afe8989552a /youtube_dl
parent19a17d462388b5d10196352e5f9d1491d608783a (diff)
[common] Use codec2ext for DASH formats (#8764)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 07bd2cbe2..f337caf20 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -29,6 +29,7 @@ from ..utils import (
age_restricted,
bug_reports_message,
clean_html,
+ codec2ext,
compiled_regex_type,
determine_ext,
error_to_compat_str,
@@ -1471,6 +1472,7 @@ class InfoExtractor(object):
f = {
'format_id': '%s-%s' % (mpd_id, representation_id) if mpd_id else representation_id,
'url': base_url,
+ 'ext': codec2ext(representation_attrib.get('codecs')),
'width': int_or_none(representation_attrib.get('width')),
'height': int_or_none(representation_attrib.get('height')),
'tbr': int_or_none(representation_attrib.get('bandwidth'), 1000),