feat(config): move youtube_api_key to DB (encrypted, admin-editable)
Register youtube_api_key in the sysconfig registry as a secret and resolve it from the DB-override-or-env layer in YouTubeClient (self.db is in scope). Adds a YouTube API group to the Configuration page (EN/HU/DE). Google OAuth client id/secret stay env-only for now: the authlib client is registered at module load (auth.py), and the token-refresh reads them too, so a runtime DB override needs a lazy/re-registerable OAuth client — that belongs to the install-wizard epic (first-boot OAuth config without restart). Admin-role-via-UI moves to the auth-overhaul epic (user management lives there).
This commit is contained in:
parent
c953642e30
commit
2dc374cc7b
6 changed files with 16 additions and 7 deletions
|
|
@ -3,6 +3,7 @@
|
|||
"loading": "Konfiguration wird geladen…",
|
||||
"groups": {
|
||||
"email": "E-Mail / SMTP",
|
||||
"youtube": "YouTube-API",
|
||||
"quota": "Kontingent",
|
||||
"backfill": "Nachladen (Backfill)",
|
||||
"shorts": "Shorts-Prüfung",
|
||||
|
|
@ -21,7 +22,8 @@
|
|||
"shorts_probe_max_seconds": { "label": "Shorts-Prüfung — max. Dauer (s)", "hint": "Nur Videos bis zu dieser Länge werden als mögliche Shorts geprüft." },
|
||||
"shorts_probe_batch": { "label": "Shorts-Prüfung — Stapelgröße", "hint": "Wie viele Videos pro Lauf klassifiziert werden." },
|
||||
"enrich_batch_size": { "label": "Anreicherungs-Stapelgröße", "hint": "videos.list-IDs pro Aufruf (YouTube begrenzt auf 50)." },
|
||||
"autotag_title_sample": { "label": "Auto-Tag-Titelstichprobe", "hint": "Pro Kanal abgetastete aktuelle Videotitel zur Spracherkennung." }
|
||||
"autotag_title_sample": { "label": "Auto-Tag-Titelstichprobe", "hint": "Pro Kanal abgetastete aktuelle Videotitel zur Spracherkennung." },
|
||||
"youtube_api_key": { "label": "YouTube-API-Schlüssel", "hint": "Optional. Für öffentliche Lesezugriffe (Kanäle/Videos), damit gemeinsames Nachladen nicht vom OAuth eines Nutzers abhängt. Verschlüsselt gespeichert; nur schreibbar." }
|
||||
},
|
||||
"save": "Speichern",
|
||||
"saving": "Speichern…",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue