From f9befee1f5e96e8b9b7032f33e70290ffd7769f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sat, 18 Oct 2014 18:14:49 +0700 Subject: [PATCH] [arte.tv:+7] Append media type to format_id (Closes #3967) --- youtube_dl/extractor/arte.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py index c3d02f85e8..3a34d1ecc6 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'),