1
0
mirror of https://gitlab.com/ytdl-org/youtube-dl.git synced 2026-04-30 00:00:02 -04:00

if there is more than one subtitle for the language, use the first one

This commit is contained in:
Liu DongMiao
2014-07-23 10:56:09 +08:00
parent d799b47b82
commit 7e660ac113
+2
View File
@@ -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,