diff options
author | remitamine <remitamine@gmail.com> | 2016-02-11 10:33:26 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-02-11 10:33:26 +0100 |
commit | 154c209e2db2bd6f51998503b15d9a050bc1e738 (patch) | |
tree | 36249b2ca4b06e43801241211013145d1a7ad471 /youtube_dl/extractor/common.py | |
parent | d1ea5e171f817d94bc356a96e7eb6967919cc18d (diff) |
[extractor/common] improve dash format ids
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index a9497851c..00645feed 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1443,7 +1443,7 @@ class InfoExtractor(object): url_el = representation.find(_add_ns('BaseURL')) filesize = int_or_none(url_el.attrib.get('{http://youtube.com/yt/2012/10/10}contentLength') if url_el is not None else None) f = { - 'format_id': mpd_id or representation_id, + 'format_id': '%s-%s' % (mpd_id, representation_id) if mpd_id else representation_id, 'url': base_url, 'width': int_or_none(representation_attrib.get('width')), 'height': int_or_none(representation_attrib.get('height')), |