aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M <dstftw@gmail.com>2014-02-25 20:27:25 +0700
committerSergey M <dstftw@gmail.com>2014-02-25 20:29:53 +0700
commit70cb73922b532c20925e725aa0243305c4caaac6 (patch)
tree332802799026b4e7359a7aafd184272991d13803
parent344400951ccddaaa477738957bdbdb86a704c55b (diff)
[crunchyroll] Fix subtitle lang code extraction
-rw-r--r--youtube_dl/extractor/crunchyroll.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py
index a20b88f02..44d78fe5e 100644
--- a/youtube_dl/extractor/crunchyroll.py
+++ b/youtube_dl/extractor/crunchyroll.py
@@ -166,7 +166,7 @@ class CrunchyrollIE(InfoExtractor):
data = base64.b64decode(data)
subtitle = self._decrypt_subtitles(data, iv, id).decode('utf-8')
- lang_code = self._search_regex(r'lang_code=\'([^\']+)', subtitle, 'subtitle_lang_code', fatal=False)
+ lang_code = self._search_regex(r'lang_code=["\']([^"\']+)', subtitle, 'subtitle_lang_code', fatal=False)
if not lang_code:
continue
subtitles[lang_code] = self._convert_subtitles_to_srt(subtitle)