mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-12-23 06:57:54 +01:00
if there is more than one subtitle for the language, use the first one
This commit is contained in:
parent
d799b47b82
commit
7e660ac113
@ -493,6 +493,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
|||||||
sub_lang_list = {}
|
sub_lang_list = {}
|
||||||
for l in lang_list:
|
for l in lang_list:
|
||||||
lang = l[1]
|
lang = l[1]
|
||||||
|
if lang in sub_lang_list:
|
||||||
|
continue
|
||||||
params = compat_urllib_parse.urlencode({
|
params = compat_urllib_parse.urlencode({
|
||||||
'lang': lang,
|
'lang': lang,
|
||||||
'v': video_id,
|
'v': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user