if there is more than one subtitle for the language, use the first one
authorLiu DongMiao <liudongmiao@gmail.com>
Wed, 23 Jul 2014 02:56:09 +0000 (10:56 +0800)
committerLiu DongMiao <liudongmiao@gmail.com>
Wed, 23 Jul 2014 02:56:09 +0000 (10:56 +0800)
youtube_dl/extractor/youtube.py

index a346f4c960df87b4f35bda4f8e571c6405f1a316..73a01107d722437ebb62d1a82ec72a33e49124cf 100644 (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,