diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:40:21 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-07-10 21:40:21 +0600 |
commit | c0bf5e1c4dc0a236402c946b0b1fd358f9e39a74 (patch) | |
tree | 62459ff97fd584286a536c996cbf0cf4f27e7656 /youtube_dl/extractor/twitch.py | |
parent | 17b41a3337b5326fd2c8dec8aa1ab285225e1daa (diff) |
[twitch] Fix non-ASCII logins/passwords on python 2
Diffstat (limited to 'youtube_dl/extractor/twitch.py')
-rw-r--r-- | youtube_dl/extractor/twitch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.py index df809ecfe..49535cd80 100644 --- a/youtube_dl/extractor/twitch.py +++ b/youtube_dl/extractor/twitch.py @@ -64,8 +64,8 @@ class TwitchBaseIE(InfoExtractor): login_page)) login_form.update({ - 'login': username, - 'password': password, + 'login': username.encode('utf-8'), + 'password': password.encode('utf-8'), }) request = compat_urllib_request.Request( |