[youtube] Correct subtitle URL (Fixes #2120)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 9 Jan 2014 00:36:21 +0000 (01:36 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 9 Jan 2014 00:36:21 +0000 (01:36 +0100)
youtube_dl/extractor/youtube.py

index 8361dda7a4089faf63b3639de6980cf986279329..70b8decf431bb74455a92baf0270ffa1f2f755ca 100644 (file)
@@ -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