aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorLiu DongMiao <liudongmiao@gmail.com>2014-07-23 10:56:09 +0800
committerLiu DongMiao <liudongmiao@gmail.com>2014-07-23 10:56:09 +0800
commit7e660ac113b5af8f92de2bbc9579426ea3d89581 (patch)
tree0fb0e9f46ea40766f6d20927a826866c75546f50 /youtube_dl/extractor/youtube.py
parentd799b47b82e7b0d310427bf26bfaacef1e544f7d (diff)
if there is more than one subtitle for the language, use the first one
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 2 insertions, 0 deletions
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,