diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-10-18 18:14:49 +0700 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2014-10-18 18:14:49 +0700 |
commit | f9befee1f5e96e8b9b7032f33e70290ffd7769f5 (patch) | |
tree | ff2a308391720cb2157ce72574b9ca26b6893a51 /youtube_dl | |
parent | 9471c4440599b02bf648091560097eaab690db50 (diff) |
[arte.tv:+7] Append media type to format_id (Closes #3967)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/arte.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index c3d02f85e..3a34d1ecc 100644 --- a/youtube_dl/extractor/arte.py +++ b/youtube_dl/extractor/arte.py @@ -160,6 +160,9 @@ class ArteTVPlus7IE(InfoExtractor): format_id = '%s-%s' % (quality, format_info['versionCode']) else: format_id = quality + media_type = format_info.get('mediaType') + if media_type is not None: + format_id += '-%s' % media_type info = { 'format_id': format_id, 'format_note': format_info.get('versionLibelle'), |