Compare commits

..

No commits in common. "8a64289924e95dcd6717589fe317930196986fc9" and "4bdc95a055414dbddaa527645e1819d0d50282a6" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

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

View File

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