[lynda] Fix non-ASCII logins/passwords on python 2
authorSergey M․ <dstftw@gmail.com>
Fri, 26 Jun 2015 13:48:23 +0000 (19:48 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 26 Jun 2015 13:48:23 +0000 (19:48 +0600)
youtube_dl/extractor/lynda.py

index 18efe5a0942c2f40238d86f3f9ed9ba591281505..a00f6e5e5eb1d398ef0776d8b20dcb1dd51ec082 100644 (file)
@@ -30,8 +30,8 @@ class LyndaBaseIE(InfoExtractor):
             return
 
         login_form = {
-            'username': username,
-            'password': password,
+            'username': username.encode('utf-8'),
+            'password': password.encode('utf-8'),
             'remember': 'false',
             'stayPut': 'false'
         }