1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-26 01:26:45 +00:00

[twitch] Fix non-ASCII logins/passwords on python 2

This commit is contained in:
Sergey M․ 2015-07-10 21:40:21 +06:00
parent 17b41a3337
commit c0bf5e1c4d

View file

@ -64,8 +64,8 @@ class TwitchBaseIE(InfoExtractor):
login_page)) login_page))
login_form.update({ login_form.update({
'login': username, 'login': username.encode('utf-8'),
'password': password, 'password': password.encode('utf-8'),
}) })
request = compat_urllib_request.Request( request = compat_urllib_request.Request(