]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/adn.py
[extractor] Add `_perform_login` function (#2943)
[yt-dlp.git] / yt_dlp / extractor / adn.py
index 0863e0d85bd22ff9edb791e7984c40aaf1c18ae6..fca6e605da1d7b53cca8d9e81b95a3f723419973 100644 (file)
@@ -126,10 +126,7 @@ def _get_subtitles(self, sub_url, video_id):
             }])
         return subtitles
 
-    def _real_initialize(self):
-        username, password = self._get_login_info()
-        if not username:
-            return
+    def _perform_login(self, username, password):
         try:
             access_token = (self._download_json(
                 self._API_BASE_URL + 'authentication/login', None,