[common] add optional 'password' argument to '_get_auth_info()'

This commit is contained in:
Mike Fährmann
2025-09-09 22:04:35 +02:00
parent 752245ac39
commit 977e1bece3

View File

@@ -354,12 +354,11 @@ class Extractor():
raise exception.AbortExtraction(
f"User input required ({prompt.strip(' :')})")
def _get_auth_info(self):
def _get_auth_info(self, password=None):
"""Return authentication information as (username, password) tuple"""
username = self.config("username")
password = None
if username:
if username or password:
password = self.config("password")
if not password:
self._check_input_allowed("password")