18 lines
592 B
Python
18 lines
592 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 build_base_url, read_config
|
|
|
|
|
|
def radarr_credentials(_: object | None = None) -> tuple[str, str]:
|
|
cfg = read_config()
|
|
url = build_base_url(cfg.radarr.url, cfg.radarr.port)
|
|
if not url or not cfg.radarr.api_key:
|
|
raise ValueError("La connexion Radarr n'est pas configurée")
|
|
return url, cfg.radarr.api_key
|