From c0bf5e1c4dc0a236402c946b0b1fd358f9e39a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Fri, 10 Jul 2015 21:40:21 +0600 Subject: [PATCH] [twitch] Fix non-ASCII logins/passwords on python 2 --- youtube_dl/extractor/twitch.py | 4 ++-- 1 file 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( -- 2.22.2