update and cleanup repo
This commit is contained in:
+2
-2
@@ -516,12 +516,12 @@ def extract_link(result: Any, args: Iterable[str]) -> Any | None:
|
||||
|
||||
|
||||
def get_api_key(config: dict[str, Any], service: str, key_path: str) -> str | None:
|
||||
"""Get API key from config with fallback support.
|
||||
"""Get API key from a dot-notation config path.
|
||||
|
||||
Args:
|
||||
config: Configuration dictionary
|
||||
service: Service name for logging
|
||||
key_path: Dot-notation path to key (e.g., "Debrid.All-debrid")
|
||||
key_path: Dot-notation path to key (e.g., "plugin.alldebrid.api_key")
|
||||
|
||||
Returns:
|
||||
API key if found and not empty, None otherwise
|
||||
|
||||
Reference in New Issue
Block a user