diff options
author | Liu DongMiao <liudongmiao@gmail.com> | 2014-07-23 10:56:09 +0800 |
---|---|---|
committer | Liu DongMiao <liudongmiao@gmail.com> | 2014-07-23 10:56:09 +0800 |
commit | 7e660ac113b5af8f92de2bbc9579426ea3d89581 (patch) | |
tree | 0fb0e9f46ea40766f6d20927a826866c75546f50 /youtube_dl/extractor/youtube.py | |
parent | d799b47b82e7b0d310427bf26bfaacef1e544f7d (diff) |
if there is more than one subtitle for the language, use the first one
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index a346f4c96..73a01107d 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -493,6 +493,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): sub_lang_list = {} for l in lang_list: lang = l[1] + if lang in sub_lang_list: + continue params = compat_urllib_parse.urlencode({ 'lang': lang, 'v': video_id, |