projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d799b47
)
if there is more than one subtitle for the language, use the first one
author
Liu DongMiao
<liudongmiao@gmail.com>
Wed, 23 Jul 2014 02:56:09 +0000
(10:56 +0800)
committer
Liu DongMiao
<liudongmiao@gmail.com>
Wed, 23 Jul 2014 02:56:09 +0000
(10:56 +0800)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index a346f4c960df87b4f35bda4f8e571c6405f1a316..73a01107d722437ebb62d1a82ec72a33e49124cf 100644
(file)
--- 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,