From: Liu DongMiao Date: Wed, 23 Jul 2014 02:56:09 +0000 (+0800) Subject: if there is more than one subtitle for the language, use the first one X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=7e660ac113b5af8f92de2bbc9579426ea3d89581;p=youtube-dl if there is more than one subtitle for the language, use the first one --- 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,