Skip to content

A feature-rich command-line audio/video downloader

[lynda] Fix non-ASCII logins/passwords on python 2

Sergey M․2988835af5cb
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index 18efe5a094..a00f6e5e5e 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'
}