From: Sergey M․ Date: Fri, 26 Jun 2015 13:48:23 +0000 (+0600) Subject: [lynda] Fix non-ASCII logins/passwords on python 2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2988835af5cbe695e61d3b58bc65027f5b48fb63;p=youtube-dl [lynda] Fix non-ASCII logins/passwords on python 2 --- diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py index 18efe5a09..a00f6e5e5 100644 --- a/youtube_dl/extractor/lynda.py +++ b/youtube_dl/extractor/lynda.py @@ -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' }