]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[twitch] Fix non-ASCII logins/passwords on python 2
authorSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:40:21 +0000 (21:40 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 10 Jul 2015 15:40:21 +0000 (21:40 +0600)
youtube_dl/extractor/twitch.py

index df809ecfecb841a3d141c17571a3699fad6949a3..49535cd80c8183be556aed196094e322ceb41574 100644 (file)
@@ -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(