17 lines
552 B
Python
17 lines
552 B
Python
"""Legacy module.
|
|
|
|
Historically, MKVTool stored connection settings inside SQLite.
|
|
The project now externalises its configuration into ./config/conf.json.
|
|
|
|
This module is kept temporarily because some imports may still reference it.
|
|
"""
|
|
|
|
from app.conf_store import read_config
|
|
|
|
|
|
def radarr_credentials(_: object | None = None) -> tuple[str, str]:
|
|
cfg = read_config()
|
|
if not cfg.radarr.url or not cfg.radarr.api_key:
|
|
raise ValueError("La connexion Radarr n'est pas configurée")
|
|
return cfg.radarr.url.rstrip("/"), cfg.radarr.api_key
|