summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-01-23 01:51:18 +0600
committerSergey M․ <dstftw@gmail.com>2016-01-23 01:51:18 +0600
commit5ca01bb9e4803d82734420445d49ea7f98579fe6 (patch)
tree4b17fbf6bd41f35985fd81427db801a680a49d0d
parent1ca59daca964b789105b50aa42835aa87c982342 (diff)
downloadyoutube-dl-5ca01bb9e4803d82734420445d49ea7f98579fe6.tar.gz
youtube-dl-5ca01bb9e4803d82734420445d49ea7f98579fe6.tar.xz
youtube-dl-5ca01bb9e4803d82734420445d49ea7f98579fe6.zip
[kanalplay] Use IETF language tag
-rw-r--r--youtube_dl/extractor/kanalplay.py2
1 files changed, 1 insertions, 1 deletions
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)