Cloud-Account-Kontingent: App liest cloud_remaining, sobald der Server es liefert

BakaAuth bekommt verbleibend/merkeVerbleibend analog zu GastZugang.
YtDownloadService liest cloud_remaining bei Cloud-Zugriff (nicht bei
Gast-Zugriff — Felder bleiben getrennt). UI zeigt "Noch N von 100
heute" für angemeldete Cloud-Accounts. Reine App-Seite, wirkungslos
bis der Server (separates Vorhaben) cloud_remaining liefert.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012A2pmbnVNPiHdyf2GW8eLP
This commit is contained in:
Hermes (Server)
2026-08-29 13:22:04 +02:00
co-authored by Claude Sonnet 5
parent 8611738124
commit d03a4e93a0
9 changed files with 204 additions and 0 deletions
+4
View File
@@ -160,6 +160,10 @@ class YtDownloadService extends ChangeNotifier {
if (gastAktiv && gastRest != null) {
gast!.merkeVerbleibend(gastRest);
}
final cloudRest = daten['cloud_remaining'] as int?;
if (!gastAktiv && cloudRest != null) {
auth.merkeVerbleibend(cloudRest);
}
// ─── 2/2: fertige MP3 abholen und speichern ───
_melde('Lade „$titel“ …');