]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[southpark] add support for videos with english audio track(closes #21271)
authorRemita Amine <remitamine@gmail.com>
Mon, 3 Jun 2019 11:43:39 +0000 (12:43 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 3 Jun 2019 11:43:39 +0000 (12:43 +0100)
youtube_dl/extractor/southpark.py

index da75a43a730334e70f5725a1a41357810cf704de..5374c842386a3b0995e6d609a2ead93995a468dd 100644 (file)
@@ -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'