aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-10 21:40:21 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-10 21:40:21 +0600
commitc0bf5e1c4dc0a236402c946b0b1fd358f9e39a74 (patch)
tree62459ff97fd584286a536c996cbf0cf4f27e7656 /youtube_dl
parent17b41a3337b5326fd2c8dec8aa1ab285225e1daa (diff)
[twitch] Fix non-ASCII logins/passwords on python 2
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/twitch.py4
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(