From 35975d733301f7c8aad84bbbbdfef1619a25d38a Mon Sep 17 00:00:00 2001 From: Sucukdeluxe Date: Sat, 7 Mar 2026 17:09:29 +0100 Subject: [PATCH] Fix hosterNotAvailable retry stalling due to provider cooldown hosterNotAvailable was added to isTemporaryUnrestrictError which triggered aggressive provider-level cooldowns (up to 180s) that blocked ALL items for the affected provider. Since items kept failing, the cooldown never expired (15-min reset threshold never reached), causing retries to effectively stall. Fix: remove hosterNotAvailable from isTemporaryUnrestrictError. It still gets normal unrestrict retry with item-level backoff (5s -> 120s) via isUnrestrictFailure, but without provider-wide cooldown blocking other items. Co-Authored-By: Claude Opus 4.6 --- src/main/download-manager.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/download-manager.ts b/src/main/download-manager.ts index af16f5b..97353cb 100644 --- a/src/main/download-manager.ts +++ b/src/main/download-manager.ts @@ -350,8 +350,7 @@ function isTemporaryUnrestrictError(errorText: string): boolean { || text.includes("bad gateway") || text.includes("gateway timeout") || text.includes("cloudflare") - || text.includes("worker error") - || text.includes("hosternotavailable"); + || text.includes("worker error"); } function isFinishedStatus(status: DownloadStatus): boolean {