Feature: Mega-Debrid-Account beim Hinzufuegen sofort pruefen (Gueltigkeit + Premium)
Beim "Hinzufuegen" eines Mega-Debrid-Accounts im Bearbeiten-Dialog wird der Account jetzt sofort einzeln geprueft (connectUser) — Login-Gueltigkeit + Premium-Restlaufzeit erscheinen direkt als Badge, ohne den Tab schliessen und "Alle pruefen" klicken zu muessen. Waehrend der Pruefung zeigt das Badge "Pruefe…". Neue Einzel-Check-IPC (Spiegel von checkDebridAccounts): CHECK_MEGA_DEBRID_ACCOUNT -> app-controller.checkSingleMegaDebridAccount(login, password) baut den Account-Entry (id via getMegaDebridAccountId), ruft die bestehende checkMegaDebridAccount() und merged das Ergebnis via applyDebridAccountStatuses -> Snapshot -> Badge (gleicher Pfad wie "Alle pruefen"). Funktioniert fuer den noch nicht gespeicherten Draft-Account, weil applyDebridAccountStatuses merged (kein Pruning) + emitState. Kern-Check-Logik unveraendert + weiterhin durch account-check.test.ts gedeckt. 643 Tests gruen, tsc 9 (unveraendert), Build sauber. GUI compile-/build-verifiziert, im laufenden Electron noch nicht click-getestet. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
4a883fb93f
commit
efb5696c13
@@ -648,6 +648,10 @@ function registerIpcHandlers(): void {
|
||||
return controller.checkDebridAccounts();
|
||||
});
|
||||
|
||||
ipcMain.handle(IPC_CHANNELS.CHECK_MEGA_DEBRID_ACCOUNT, async (_event, login: string, password: string) => {
|
||||
return controller.checkSingleMegaDebridAccount(String(login || ""), String(password || ""));
|
||||
});
|
||||
|
||||
ipcMain.handle(IPC_CHANNELS.IMPORT_BACKUP, async () => {
|
||||
const options = {
|
||||
properties: ["openFile"] as Array<"openFile">,
|
||||
|
||||
Reference in New Issue
Block a user