This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
youtube-dl
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
1.1k
Wiki
Activity
Browse Source
if there is more than one subtitle for the language, use the first one
totalwebcasting
Liu DongMiao
11 years ago
parent
d799b47b82
commit
7e660ac113
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
youtube_dl/extractor/youtube.py
+ 2
- 0
youtube_dl/extractor/youtube.py
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
,
Write
Preview
Loading…
Cancel
Save