From c3197e3e5c245dd56020f3ff38c89d71677c5fc5 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 9 Jan 2014 01:36:21 +0100 Subject: [PATCH] [youtube] Correct subtitle URL (Fixes #2120) --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def _get_available_subtitles(self, video_id, webpage): '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