From 14384d4a6f817e57d9db0cc9f0ca718fca10578a Mon Sep 17 00:00:00 2001 From: ckaotik Date: Sun, 21 Feb 2021 12:52:47 +0100 Subject: [PATCH] [mediathekviewweb] Tweaked detection & naming for sign language/audio description --- youtube_dl/extractor/mediathekviewweb.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/mediathekviewweb.py b/youtube_dl/extractor/mediathekviewweb.py index 7da225832..ae69c5d07 100644 --- a/youtube_dl/extractor/mediathekviewweb.py +++ b/youtube_dl/extractor/mediathekviewweb.py @@ -25,8 +25,8 @@ class MediathekViewWebSearchIE(SearchInfoExtractor): # Map of title affixes indicating video variants. _variants = { - 'audio_description': '(Audiodeskription)', - 'sign_language': '(mit Gebärdensprache)', + 'audio_description': 'Audiodeskription', + 'sign_language': 'mit Gebärdensprache', } _future = True _everywhere = False @@ -108,7 +108,7 @@ class MediathekViewWebSearchIE(SearchInfoExtractor): formats = [] formats.append({ 'url': item['url_video'], - 'format': ('medium ' + self._variants[variant]) if variant else None, + 'format': ('medium (' + self._variants[variant] + ')') if variant else None, 'format_id': ('medium-' + variant) if variant else 'medium', 'language_preference': -10 if variant else 10, 'quality': -2, @@ -117,7 +117,7 @@ class MediathekViewWebSearchIE(SearchInfoExtractor): if len(item.get('url_video_low', '')) > 0: formats.append({ 'url': item['url_video_low'], - 'format': ('low ' + self._variants[variant]) if variant else None, + 'format': ('low (' + self._variants[variant] + ')') if variant else None, 'format_id': ('low-' + variant) if variant else 'low', 'language_preference': -10 if variant else 10, 'quality': -3, @@ -125,7 +125,7 @@ class MediathekViewWebSearchIE(SearchInfoExtractor): if len(item.get('url_video_hd', '')) > 0: formats.append({ 'url': item['url_video_hd'], - 'format': ('high ' + self._variants[variant]) if variant else None, + 'format': ('high (' + self._variants[variant] + ')') if variant else None, 'format_id': ('high-' + variant) if variant else 'high', 'language_preference': -10 if variant else 10, 'quality': -1,