From 977e1bece36ee58088cc9858d77b93bd82e4d32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 9 Sep 2025 22:04:35 +0200 Subject: [PATCH] [common] add optional 'password' argument to '_get_auth_info()' --- gallery_dl/extractor/common.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py index 568f435a..08033fa1 100644 --- a/gallery_dl/extractor/common.py +++ b/gallery_dl/extractor/common.py @@ -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")