mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-16 20:31:05 +02:00
[twitch] Fix non-ASCII logins/passwords on python 2
This commit is contained in:
parent
17b41a3337
commit
c0bf5e1c4d
@ -64,8 +64,8 @@ def _login(self):
|
|||||||
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…
Reference in New Issue
Block a user