A feature-rich command-line audio/video downloader
[crunchyroll] Fix subtitle lang code extraction
Sergey M70cb73922b53
diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.pyindex a20b88f025..44d78fe5e3 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:continuesubtitles[lang_code] = self._convert_subtitles_to_srt(subtitle)