Harden Debrid-Link HTTP 416 recovery and rename coverage

This commit is contained in:
Sucukdeluxe
2026-03-08 19:36:54 +01:00
parent 09d757782f
commit 8224910091
3 changed files with 247 additions and 0 deletions
+8
View File
@@ -7009,6 +7009,14 @@ export class DownloadManager extends EventEmitter {
item.fullStatus = `Range-Konflikt (HTTP 416), starte neu ${attempt}/${retryDisplayLimit}`;
item.updatedAt = nowMs();
this.emitState();
if (item.provider === "debridlink") {
logAttemptEvent("WARN", "Debrid-Link HTTP 416: Direktlink sofort verwerfen", {
attempt,
existingBytes,
expectedTotal: expectedTotal || null
});
throw new Error("direct_link_retry_exhausted:HTTP 416");
}
if (attempt < maxAttempts) {
item.retries += 1;
await sleep(retryDelayWithJitter(attempt, 200));