Add multi-provider fallback with AllDebrid and fix packaged UI path
Build and Release / build (push) Has been cancelled

This commit is contained in:
Sucukdeluxe
2026-02-27 04:02:31 +01:00
parent f27584d6ee
commit cbc1ffa18b
15 changed files with 975 additions and 27 deletions
+5 -1
View File
@@ -28,13 +28,17 @@ export class AppController {
if (this.settings.autoResumeOnStart) {
const snapshot = this.manager.getSnapshot();
const hasPending = Object.values(snapshot.session.items).some((item) => item.status === "queued" || item.status === "reconnect_wait");
if (hasPending && this.settings.token.trim()) {
if (hasPending && this.hasAnyProviderToken(this.settings)) {
this.manager.start();
logger.info("Auto-Resume beim Start aktiviert");
}
}
}
private hasAnyProviderToken(settings: AppSettings): boolean {
return Boolean(settings.token.trim() || settings.megaToken.trim() || settings.bestToken.trim() || settings.allDebridToken.trim());
}
public onState: ((snapshot: UiSnapshot) => void) | null = null;
public getSnapshot(): UiSnapshot {