aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-06-03 12:43:39 +0100
committerRemita Amine <remitamine@gmail.com>2019-06-03 12:43:39 +0100
commit0c84002650cf21f38685a7446cd4cdb0f963a412 (patch)
tree70def8391f00b9ba2b37d57be3879c96f1b218ef /youtube_dl
parentc5eb75b35a709baa134fb96e774a4b712cc65e93 (diff)
[southpark] add support for videos with english audio track(closes #21271)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/southpark.py4
1 files changed, 4 insertions, 0 deletions
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'