Skip to content

A feature-rich command-line audio/video downloader

[udemy] Remove unnecessary login/password encode

Sergey M․a3373823e1bd
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index bc69e6e415..d1e6f2703e 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -151,8 +151,8 @@ class UdemyIE(InfoExtractor):
login_form = self._form_hidden_inputs('login-form', login_popup)
login_form.update({
- 'email': username.encode('utf-8'),
- 'password': password.encode('utf-8'),
+ 'email': username,
+ 'password': password,
})
request = sanitized_Request(