feat: add Deepbrid, daily scheduling, and notification center
Add encrypted Deepbrid API accounts with account validation, provider routing, fallback, usage tracking, safe error handling, and verified 1Fichier downloads. Restore persistent recurring daily starts with local-calendar deduplication and legacy schedule compatibility. Add durable Discord package, run, remaining-volume, stall, and recovery notifications with privacy-safe telemetry and disk-failure recovery.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseDebridLinkTerminalFailure } from "../src/main/download-manager";
|
||||
import { classifyProviderUnrestrictBackoff, isProviderUnrestrictFailure, parseDebridLinkTerminalFailure } from "../src/main/download-manager";
|
||||
|
||||
describe("provider error classification", () => {
|
||||
it("does not relabel an aggregated Real-Debrid failure as Debrid-Link", () => {
|
||||
@@ -13,4 +13,15 @@ describe("provider error classification", () => {
|
||||
kind: "no_active_key"
|
||||
});
|
||||
});
|
||||
|
||||
it.each([
|
||||
["Deepbrid-Anfrage fehlgeschlagen (rate_limit, HTTP 429, Code 429)", "busy"],
|
||||
["Deepbrid-Anfrage fehlgeschlagen (temporary, HTTP 503, Code 503)", "temporary"],
|
||||
["Deepbrid-Anfrage fehlgeschlagen (auth, HTTP 401, Code 401)", null],
|
||||
["Deepbrid-Anfrage fehlgeschlagen (link, HTTP 400, Code 17)", null],
|
||||
["Deepbrid-Anfrage fehlgeschlagen (malformed, HTTP 200, Code 200)", null]
|
||||
])("classifies Deepbrid backoff precisely for %s", (message, expected) => {
|
||||
expect(classifyProviderUnrestrictBackoff(message)).toBe(expected);
|
||||
expect(isProviderUnrestrictFailure(message)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user