aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-09 01:36:21 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-09 01:36:21 +0100
commitc3197e3e5c245dd56020f3ff38c89d71677c5fc5 (patch)
tree22a622c1cc9b781f9b493e680df305fee9db9902
parentd420d8dd1bbe375ebe7048e70f5f47e6c5bbc5cf (diff)
[youtube] Correct subtitle URL (Fixes #2120)
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 8361dda7a..70b8decf4 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -998,7 +998,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'lang': lang,
'v': video_id,
'fmt': self._downloader.params.get('subtitlesformat', 'srt'),
- 'name': l[0].encode('utf-8'),
+ 'name': unescapeHTML(l[0]).encode('utf-8'),
})
url = u'http://www.youtube.com/api/timedtext?' + params
sub_lang_list[lang] = url