From 7e660ac113b5af8f92de2bbc9579426ea3d89581 Mon Sep 17 00:00:00 2001
From: Liu DongMiao <liudongmiao@gmail.com>
Date: Wed, 23 Jul 2014 10:56:09 +0800
Subject: [PATCH] if there is more than one subtitle for the language, use the
 first one

---
 youtube_dl/extractor/youtube.py | 2 ++
 1 file changed, 2 insertions(+)

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,