From: Remita Amine Date: Mon, 3 Jun 2019 11:43:39 +0000 (+0100) Subject: [southpark] add support for videos with english audio track(closes #21271) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=0c84002650cf21f38685a7446cd4cdb0f963a412;p=youtube-dl [southpark] add support for videos with english audio track(closes #21271) --- diff --git a/youtube_dl/extractor/southpark.py b/youtube_dl/extractor/southpark.py index da75a43a7..5374c8423 100644 --- a/youtube_dl/extractor/southpark.py +++ b/youtube_dl/extractor/southpark.py @@ -78,6 +78,10 @@ class SouthParkDeIE(SouthParkIE): 'only_matching': True, }] + def _real_initialize(self): + lang = self._get_cookies('http://www.southpark.de/alle-episoden/').get('SPS_video_language') + self._LANG = lang.value if lang else 'de' + class SouthParkNlIE(SouthParkIE): IE_NAME = 'southpark.nl'