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

pull/2/head
Sergey M․ 9 years ago
parent 17b41a3337
commit c0bf5e1c4d

@ -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(

Loading…
Cancel
Save