Compare commits
No commits in common. "c51b52b86a30197b920d21f8fbebfbe90bd1c7c8" and "e84859d15b5a8311a219b2d9600b81fa8c5fb98f" have entirely different histories.
c51b52b86a
...
e84859d15b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.7.114",
|
"version": "1.7.113",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -4551,23 +4551,13 @@ export class DownloadManager extends EventEmitter {
|
|||||||
active.abortReason = "stop";
|
active.abortReason = "stop";
|
||||||
active.abortController.abort("stop");
|
active.abortController.abort("stop");
|
||||||
}
|
}
|
||||||
// Reset non-finished items. Items that were part of the current run
|
// Reset all non-finished items to clean "Wartet" / "Paket gestoppt" state
|
||||||
// (runItemIds) go back to "Wartet" so they are picked up by the next start().
|
|
||||||
// Items that were NOT in the run set are marked "Gestoppt" so a subsequent
|
|
||||||
// start() does not accidentally include the entire queue.
|
|
||||||
const hadRunItems = this.runItemIds.size > 0;
|
|
||||||
for (const item of Object.values(this.session.items)) {
|
for (const item of Object.values(this.session.items)) {
|
||||||
if (!isFinishedStatus(item.status)) {
|
if (!isFinishedStatus(item.status)) {
|
||||||
const pkg = this.session.packages[item.packageId];
|
item.status = "queued";
|
||||||
const wasInRun = !hadRunItems || this.runItemIds.has(item.id);
|
|
||||||
if (wasInRun) {
|
|
||||||
item.status = "queued";
|
|
||||||
item.fullStatus = pkg && !pkg.enabled ? "Paket gestoppt" : "Wartet";
|
|
||||||
} else {
|
|
||||||
item.status = "cancelled";
|
|
||||||
item.fullStatus = "Gestoppt";
|
|
||||||
}
|
|
||||||
item.speedBps = 0;
|
item.speedBps = 0;
|
||||||
|
const pkg = this.session.packages[item.packageId];
|
||||||
|
item.fullStatus = pkg && !pkg.enabled ? "Paket gestoppt" : "Wartet";
|
||||||
item.updatedAt = nowMs();
|
item.updatedAt = nowMs();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user