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 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe 2026-03-07 17:09:29 +01:00
parent 8a64289924
commit 35975d7333

View File

@ -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 {