aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-08-22 02:45:21 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-08-22 02:45:21 +0200
commitbd9820c937be846e0e1067395fbf133102c45e79 (patch)
treef9772e109032b3f44bfb6922164a896e36d589d5 /youtube_dl
parentdeda8ac376efba365aa29bc31d4e37db03d0babd (diff)
parent7e660ac113b5af8f92de2bbc9579426ea3d89581 (diff)
Merge remote-tracking branch 'liudongmiao/patch-subtitle'
Diffstat (limited to 'youtube_dl')
-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 2c44f36a5..225e2b7f4 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -508,6 +508,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,