]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/curiositystream.py
[extractor] Add `_perform_login` function (#2943)
[yt-dlp.git] / yt_dlp / extractor / curiositystream.py
index 485b6031fcefc8944df74ada47aceb962c4e6ddd..b8abcf7a5a517b5ba2103807ddbf6e97f2110c2f 100644 (file)
@@ -33,14 +33,11 @@ def _call_api(self, path, video_id, query=None):
         self._handle_errors(result)
         return result['data']
 
-    def _real_initialize(self):
-        email, password = self._get_login_info()
-        if email is None:
-            return
+    def _perform_login(self, username, password):
         result = self._download_json(
             'https://api.curiositystream.com/v1/login', None,
             note='Logging in', data=urlencode_postdata({
-                'email': email,
+                'email': username,
                 'password': password,
             }))
         self._handle_errors(result)