Compare commits

..

No commits in common. "ed0070c71190b0f0385029e80b8100e6e14f9c89" and "a3b72d4cbf1e0ed3737991f61c8ccb12b7efcbfb" have entirely different histories.

2 changed files with 4 additions and 14 deletions

View File

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

View File

@ -395,15 +395,6 @@ function providerLabel(provider: DownloadItem["provider"]): string {
if (provider === "ddownload") { if (provider === "ddownload") {
return "DDownload"; return "DDownload";
} }
if (provider === "onefichier") {
return "1Fichier";
}
if (provider === "debridlink") {
return "Debrid-Link";
}
if (provider === "linksnappy") {
return "LinkSnappy";
}
return "Debrid"; return "Debrid";
} }
@ -5462,8 +5453,7 @@ export class DownloadManager extends EventEmitter {
item.totalBytes = unrestricted.fileSize; item.totalBytes = unrestricted.fileSize;
item.status = "downloading"; item.status = "downloading";
const pLabel = unrestricted.providerLabel; const pLabel = unrestricted.providerLabel;
const statusLabel = providerLabel(unrestricted.provider) || pLabel; item.fullStatus = `Starte... (${pLabel})`;
item.fullStatus = `Starte... (${statusLabel})`;
item.updatedAt = nowMs(); item.updatedAt = nowMs();
this.emitState(); this.emitState();
logger.info(`Download Start: ${item.fileName} (${humanSize(unrestricted.fileSize || 0)}) via ${pLabel}, pkg=${pkg.name}`); logger.info(`Download Start: ${item.fileName} (${humanSize(unrestricted.fileSize || 0)}) via ${pLabel}, pkg=${pkg.name}`);
@ -5474,7 +5464,7 @@ export class DownloadManager extends EventEmitter {
item.attempts += 1; item.attempts += 1;
if (item.status !== "downloading") { if (item.status !== "downloading") {
item.status = "downloading"; item.status = "downloading";
item.fullStatus = `Download läuft (${statusLabel})`; item.fullStatus = `Download läuft (${pLabel})`;
item.updatedAt = nowMs(); item.updatedAt = nowMs();
this.emitState(); this.emitState();
} }
@ -5906,7 +5896,7 @@ export class DownloadManager extends EventEmitter {
skipTlsVerify?: boolean, skipTlsVerify?: boolean,
pLabel?: string pLabel?: string
): Promise<{ resumable: boolean }> { ): Promise<{ resumable: boolean }> {
const label = providerLabel(this.session.items[active.itemId]?.provider) || pLabel || "Debrid"; const label = pLabel || providerLabel(this.session.items[active.itemId]?.provider);
const item = this.session.items[active.itemId]; const item = this.session.items[active.itemId];
if (!item) { if (!item) {
throw new Error("Download-Item fehlt"); throw new Error("Download-Item fehlt");