diff options
author | Philipp Hagemeister <[email protected]> | 2013-11-02 11:21:05 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-11-02 11:21:05 +0100 |
commit | 8eddf3e91ddab3bb766bc5176edb3120be5743ea (patch) | |
tree | 3bef094b2364e1c3130d3ce5e0070e6c8348ecca | |
parent | 60d142aa8d896674ca2b062a53b3d18c644192ea (diff) | |
download | youtube-dl-8eddf3e91ddab3bb766bc5176edb3120be5743ea.tar.gz youtube-dl-8eddf3e91ddab3bb766bc5176edb3120be5743ea.zip |
[youtube] Encode subtitle track name in request (Fixes #1700)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index f3a2a32b4..dc601de52 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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 |