]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/lecturio.py
[extractor] Add `_perform_login` function (#2943)
[yt-dlp.git] / yt_dlp / extractor / lecturio.py
index 9d2228700c22069434b8f88bb48ad0181492b047..0ee1eeb4d309800de8ebfe3b1ac341cbc6d544eb 100644 (file)
@@ -22,14 +22,7 @@ class LecturioBaseIE(InfoExtractor):
     _LOGIN_URL = 'https://app.lecturio.com/en/login'
     _NETRC_MACHINE = 'lecturio'
 
-    def _real_initialize(self):
-        self._login()
-
-    def _login(self):
-        username, password = self._get_login_info()
-        if username is None:
-            return
-
+    def _perform_login(self, username, password):
         # Sets some cookies
         _, urlh = self._download_webpage_handle(
             self._LOGIN_URL, None, 'Downloading login popup')