From: Sergey M․ Date: Fri, 10 Jul 2015 15:40:21 +0000 (+0600) Subject: [twitch] Fix non-ASCII logins/passwords on python 2 X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=c0bf5e1c4dc0a236402c946b0b1fd358f9e39a74;p=youtube-dl [twitch] Fix non-ASCII logins/passwords on python 2 --- 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(