aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-10-18 18:14:49 +0700
committerSergey M <dstftw@gmail.com>2014-10-18 18:14:49 +0700
commitf9befee1f5e96e8b9b7032f33e70290ffd7769f5 (patch)
treeff2a308391720cb2157ce72574b9ca26b6893a51
parent9471c4440599b02bf648091560097eaab690db50 (diff)
[arte.tv:+7] Append media type to format_id (Closes #3967)
-rw-r--r--youtube_dl/extractor/arte.py3
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'),