From: Sergey M․ Date: Fri, 22 Jan 2016 19:51:18 +0000 (+0600) Subject: [kanalplay] Use IETF language tag X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=5ca01bb9e4803d82734420445d49ea7f98579fe6;p=youtube-dl [kanalplay] Use IETF language tag --- diff --git a/youtube_dl/extractor/kanalplay.py b/youtube_dl/extractor/kanalplay.py index 4597d1b96..6c3498c67 100644 --- a/youtube_dl/extractor/kanalplay.py +++ b/youtube_dl/extractor/kanalplay.py @@ -49,7 +49,7 @@ class KanalPlayIE(InfoExtractor): subs = self._download_json( 'http://www.kanal%splay.se/api/subtitles/%s' % (channel_id, video_id), video_id, 'Downloading subtitles JSON', fatal=False) - return {'se': [{'ext': 'srt', 'data': self._fix_subtitles(subs)}]} if subs else {} + return {'sv': [{'ext': 'srt', 'data': self._fix_subtitles(subs)}]} if subs else {} def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)