mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 22:12:17 -05:00
[youtube] Encode subtitle track name in request (Fixes #1700)
This commit is contained in:
parent
60d142aa8d
commit
8eddf3e91d
1 changed files with 1 additions and 1 deletions
|
@ -1111,7 +1111,7 @@ def _get_available_subtitles(self, video_id):
|
||||||
'lang': lang,
|
'lang': lang,
|
||||||
'v': video_id,
|
'v': video_id,
|
||||||
'fmt': self._downloader.params.get('subtitlesformat'),
|
'fmt': self._downloader.params.get('subtitlesformat'),
|
||||||
'name': l[0],
|
'name': l[0].encode('utf-8'),
|
||||||
})
|
})
|
||||||
url = u'http://www.youtube.com/api/timedtext?' + params
|
url = u'http://www.youtube.com/api/timedtext?' + params
|
||||||
sub_lang_list[lang] = url
|
sub_lang_list[lang] = url
|
||||||
|
|
Loading…
Reference in a new issue