update and cleanup repo

This commit is contained in:
2026-05-26 15:32:01 -07:00
parent 5041d9fbb9
commit 0db899d0c3
72 changed files with 788 additions and 1884 deletions
+5 -5
View File
@@ -674,7 +674,7 @@ class OpenLibrary(Provider):
if not isinstance(config, dict):
return _DEFAULT_PREFERRED_LANGUAGE
entry = config.get("provider", {}).get("openlibrary", {})
entry = config.get("plugin", {}).get("openlibrary", {})
if not isinstance(entry, dict):
return _DEFAULT_PREFERRED_LANGUAGE
@@ -1118,7 +1118,7 @@ class OpenLibrary(Provider):
table = Table(f"OpenLibrary Editions: {title}")._perseverance(True)
table.set_table("openlibrary.edition")
try:
table.set_table_metadata({"provider": "openlibrary", "view": "borrowable_editions"})
table.set_table_metadata({"plugin": "openlibrary", "view": "borrowable_editions"})
except Exception:
pass
table.set_source_command("search-file", ["-plugin", "openlibrary"])
@@ -1274,7 +1274,7 @@ class OpenLibrary(Provider):
if not isinstance(config, dict):
return None, None
entry = config.get("provider", {}).get("openlibrary", {})
entry = config.get("plugin", {}).get("openlibrary", {})
if isinstance(entry, dict):
email = entry.get("email")
password = entry.get("password")
@@ -1287,11 +1287,11 @@ class OpenLibrary(Provider):
@classmethod
def _archive_scale_from_config(cls, config: Dict[str, Any]) -> int:
"""Resolve Archive.org book-reader scale from provider config."""
"""Resolve Archive.org book-reader scale from plugin config."""
if not isinstance(config, dict):
return _DEFAULT_ARCHIVE_SCALE
entry = config.get("provider", {}).get("openlibrary", {})
entry = config.get("plugin", {}).get("openlibrary", {})
if not isinstance(entry, dict):
return _DEFAULT_ARCHIVE_SCALE