1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-25 08:35:50 +01:00

[youtube] Encode subtitle track name in request (Fixes #1700)

This commit is contained in:
Philipp Hagemeister 2013-11-02 11:21:05 +01:00
parent 60d142aa8d
commit 8eddf3e91d

View File

@ -1111,7 +1111,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
'lang': lang,
'v': video_id,
'fmt': self._downloader.params.get('subtitlesformat'),
'name': l[0],
'name': l[0].encode('utf-8'),
})
url = u'http://www.youtube.com/api/timedtext?' + params
sub_lang_list[lang] = url