From 49b69ad91c4a638eb8b9bdb9846819fa9274a38e Mon Sep 17 00:00:00 2001 From: ping Date: Tue, 15 Nov 2016 23:07:17 +0800 Subject: [PATCH] [vlive] Prefer locale over language for subtitles id --- youtube_dl/extractor/vlive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py index 8d671cca7..c3aa57cd6 100644 --- a/youtube_dl/extractor/vlive.py +++ b/youtube_dl/extractor/vlive.py @@ -116,7 +116,7 @@ def _replay(self, video_id, webpage, long_video_id, key): subtitles = {} for caption in playinfo.get('captions', {}).get('list', []): - lang = dict_get(caption, ('language', 'locale', 'country', 'label')) + lang = dict_get(caption, ('locale', 'language', 'country', 'label')) if lang and caption.get('source'): subtitles[lang] = [{ 'ext': 'vtt',