Compare commits

..

No commits in common. "3965d3e4947b293fd92442ecee9c9a3bdc442362" and "d9b02065a2ebe2f4864c69061512817f391d66fc" have entirely different histories.

2 changed files with 10 additions and 11 deletions

View File

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

View File

@ -4771,11 +4771,10 @@ export class DownloadManager extends EventEmitter {
item.targetPath = this.claimTargetPath(item.id, preferredTargetPath, Boolean(canReuseExistingTarget)); item.targetPath = this.claimTargetPath(item.id, preferredTargetPath, Boolean(canReuseExistingTarget));
item.totalBytes = unrestricted.fileSize; item.totalBytes = unrestricted.fileSize;
item.status = "downloading"; item.status = "downloading";
const pLabel = unrestricted.providerLabel; item.fullStatus = `Starte... (${unrestricted.providerLabel})`;
item.fullStatus = `Starte... (${pLabel})`;
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 ${unrestricted.providerLabel}, pkg=${pkg.name}`);
const maxAttempts = maxItemAttempts; const maxAttempts = maxItemAttempts;
let done = false; let done = false;
@ -4783,7 +4782,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 (${pLabel})`; item.fullStatus = `Download läuft (${providerLabel(item.provider)})`;
item.updatedAt = nowMs(); item.updatedAt = nowMs();
this.emitState(); this.emitState();
} }
@ -5424,7 +5423,7 @@ export class DownloadManager extends EventEmitter {
if (nowTick - lastDiskBusyEmitAt >= 1200) { if (nowTick - lastDiskBusyEmitAt >= 1200) {
item.status = "downloading"; item.status = "downloading";
item.speedBps = 0; item.speedBps = 0;
item.fullStatus = `Warte auf Festplatte (${pLabel})`; item.fullStatus = `Warte auf Festplatte (${providerLabel(item.provider)})`;
item.updatedAt = nowTick; item.updatedAt = nowTick;
this.emitState(); this.emitState();
lastDiskBusyEmitAt = nowTick; lastDiskBusyEmitAt = nowTick;
@ -5535,7 +5534,7 @@ export class DownloadManager extends EventEmitter {
if (nowTick - lastIdleEmitAt >= idlePulseMs) { if (nowTick - lastIdleEmitAt >= idlePulseMs) {
item.status = "downloading"; item.status = "downloading";
item.speedBps = 0; item.speedBps = 0;
item.fullStatus = `Warte auf Festplatte (${pLabel})`; item.fullStatus = `Warte auf Festplatte (${providerLabel(item.provider)})`;
item.updatedAt = nowTick; item.updatedAt = nowTick;
this.emitState(); this.emitState();
lastIdleEmitAt = nowTick; lastIdleEmitAt = nowTick;
@ -5551,7 +5550,7 @@ export class DownloadManager extends EventEmitter {
} }
item.status = "downloading"; item.status = "downloading";
item.speedBps = 0; item.speedBps = 0;
item.fullStatus = `Warte auf Daten (${pLabel})`; item.fullStatus = `Warte auf Daten (${providerLabel(item.provider)})`;
if (nowTick - lastIdleEmitAt >= idlePulseMs) { if (nowTick - lastIdleEmitAt >= idlePulseMs) {
item.updatedAt = nowTick; item.updatedAt = nowTick;
this.emitState(); this.emitState();
@ -5660,7 +5659,7 @@ export class DownloadManager extends EventEmitter {
if (nowTick - lastDiskBusyEmitAt >= 1200) { if (nowTick - lastDiskBusyEmitAt >= 1200) {
item.status = "downloading"; item.status = "downloading";
item.speedBps = 0; item.speedBps = 0;
item.fullStatus = `Warte auf Festplatte (${pLabel})`; item.fullStatus = `Warte auf Festplatte (${providerLabel(item.provider)})`;
item.updatedAt = nowTick; item.updatedAt = nowTick;
this.emitState(); this.emitState();
lastDiskBusyEmitAt = nowTick; lastDiskBusyEmitAt = nowTick;
@ -5704,10 +5703,10 @@ export class DownloadManager extends EventEmitter {
const diskBusy = diskBusySince > 0 && nowMs() - diskBusySince >= DISK_BUSY_THRESHOLD_MS; const diskBusy = diskBusySince > 0 && nowMs() - diskBusySince >= DISK_BUSY_THRESHOLD_MS;
if (diskBusy) { if (diskBusy) {
item.speedBps = 0; item.speedBps = 0;
item.fullStatus = `Warte auf Festplatte (${pLabel})`; item.fullStatus = `Warte auf Festplatte (${providerLabel(item.provider)})`;
} else { } else {
item.speedBps = Math.max(0, Math.floor(speed)); item.speedBps = Math.max(0, Math.floor(speed));
item.fullStatus = `Download läuft (${pLabel})`; item.fullStatus = `Download läuft (${providerLabel(item.provider)})`;
} }
const nowTick = nowMs(); const nowTick = nowMs();
if (nowTick - lastUiEmitAt >= uiUpdateIntervalMs) { if (nowTick - lastUiEmitAt >= uiUpdateIntervalMs) {