From: Philipp Hagemeister Date: Thu, 9 Jan 2014 00:36:21 +0000 (+0100) Subject: [youtube] Correct subtitle URL (Fixes #2120) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=c3197e3e5c245dd56020f3ff38c89d71677c5fc5;p=youtube-dl [youtube] Correct subtitle URL (Fixes #2120) --- 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