[youtube] set the 'name' parameter in the subtitles url (fixes #1577)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 9 Oct 2013 14:41:36 +0000 (16:41 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 9 Oct 2013 14:41:36 +0000 (16:41 +0200)
youtube_dl/extractor/youtube.py

index 35310b39f5734bcdf0e34e93f3edc3756e4ba1bd..a7c5145134084cd81776ca01d2ee58a7119f0e05 100644 (file)
@@ -1116,6 +1116,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
                 'lang': lang,
                 'v': video_id,
                 'fmt': self._downloader.params.get('subtitlesformat'),
+                'name': l[0],
             })
             url = u'http://www.youtube.com/api/timedtext?' + params
             sub_lang_list[lang] = url