Compare commits

..

2 Commits

Author SHA1 Message Date
Sucukdeluxe
8a64289924 Release v1.7.13 2026-03-07 17:02:32 +01:00
Sucukdeluxe
67fc3a8e1c Treat hosterNotAvailable as temporary error with retry
Move hosterNotAvailable from isPermanentLinkError to
isTemporaryUnrestrictError — hoster being unavailable is usually
transient (overload, maintenance) and should be retried with backoff
instead of immediately failing as "Link ungültig".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 17:01:58 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "real-debrid-downloader",
"version": "1.7.12",
"version": "1.7.13",
"description": "Desktop downloader",
"main": "build/main/main/main.js",
"author": "Sucukdeluxe",

View File

@ -302,7 +302,6 @@ function isFetchFailure(errorText: string): boolean {
function isPermanentLinkError(errorText: string): boolean {
const text = String(errorText || "").toLowerCase();
return text.includes("permanent ungültig")
|| text.includes("hosternotavailable")
|| /file.?not.?found/.test(text)
|| /file.?unavailable/.test(text)
|| /link.?is.?dead/.test(text)
@ -351,7 +350,8 @@ function isTemporaryUnrestrictError(errorText: string): boolean {
|| text.includes("bad gateway")
|| text.includes("gateway timeout")
|| text.includes("cloudflare")
|| text.includes("worker error");
|| text.includes("worker error")
|| text.includes("hosternotavailable");
}
function isFinishedStatus(status: DownloadStatus): boolean {