]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[udemy] Remove unnecessary login/password encode
authorSergey M․ <dstftw@gmail.com>
Fri, 1 Apr 2016 16:42:09 +0000 (22:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 1 Apr 2016 16:42:09 +0000 (22:42 +0600)
This is now covered by compat_urllib_parse_urlencode

youtube_dl/extractor/udemy.py

index bc69e6e415f241c0606cd55ce9c8ba08ec33a35a..d1e6f2703e022dac0edc3ef0f16794a6285d2b8f 100644 (file)
@@ -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(