k
This commit is contained in:
@@ -311,13 +311,7 @@ def prepare_magnet(
|
||||
) -> tuple[Optional[AllDebridClient], Optional[int]]:
|
||||
api_key = _get_debrid_api_key(config or {})
|
||||
if not api_key:
|
||||
try:
|
||||
from SYS.rich_display import show_provider_config_panel
|
||||
|
||||
show_provider_config_panel("alldebrid", ["api_key"])
|
||||
except Exception:
|
||||
pass
|
||||
log("AllDebrid API key not configured (provider.alldebrid.api_key)", file=sys.stderr)
|
||||
log("AllDebrid API key not configured. Use .config to set it.", file=sys.stderr)
|
||||
return None, None
|
||||
|
||||
try:
|
||||
|
||||
@@ -1187,18 +1187,9 @@ class OpenLibrary(Provider):
|
||||
email, password = self._credential_archive(self.config or {})
|
||||
if not email or not password:
|
||||
log(
|
||||
"[openlibrary] Archive credentials missing; cannot borrow",
|
||||
"[openlibrary] Archive credentials missing; cannot borrow. Use .config to set them.",
|
||||
file=sys.stderr
|
||||
)
|
||||
try:
|
||||
from SYS.rich_display import show_provider_config_panel
|
||||
|
||||
show_provider_config_panel(
|
||||
"openlibrary",
|
||||
keys=self.required_config_keys(),
|
||||
)
|
||||
except Exception:
|
||||
pass
|
||||
return None
|
||||
|
||||
lendable = True
|
||||
|
||||
Reference in New Issue
Block a user