A feature-rich command-line audio/video downloader
[twitch] Fix non-ASCII logins/passwords on python 2
Sergey M․c0bf5e1c4dc0
diff --git a/youtube_dl/extractor/twitch.py b/youtube_dl/extractor/twitch.pyindex df809ecfec..49535cd80c 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(