Fix hybrid extraction showing "Ausstehend" instead of "Warten auf Parts"
When hybrid extraction finds no ready archive sets (because remaining parts are still downloading), completed items were incorrectly labeled as "Entpacken - Ausstehend" instead of "Entpacken - Warten auf Parts". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0404d870ad
commit
479c7a3f3f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.6.33",
|
"version": "1.6.34",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -6237,6 +6237,19 @@ export class DownloadManager extends EventEmitter {
|
|||||||
const readyArchives = await this.findReadyArchiveSets(pkg);
|
const readyArchives = await this.findReadyArchiveSets(pkg);
|
||||||
if (readyArchives.size === 0) {
|
if (readyArchives.size === 0) {
|
||||||
logger.info(`Hybrid-Extract: pkg=${pkg.name}, keine fertigen Archive-Sets`);
|
logger.info(`Hybrid-Extract: pkg=${pkg.name}, keine fertigen Archive-Sets`);
|
||||||
|
// Relabel completed items that are part of incomplete multi-part archives
|
||||||
|
// from "Ausstehend" to "Warten auf Parts" so the UI accurately reflects
|
||||||
|
// that extraction is waiting for remaining parts to finish downloading.
|
||||||
|
const allDone = items.every((i) => i.status === "completed" || i.status === "failed" || i.status === "cancelled");
|
||||||
|
if (!allDone) {
|
||||||
|
for (const entry of items) {
|
||||||
|
if (entry.status === "completed" && entry.fullStatus === "Entpacken - Ausstehend") {
|
||||||
|
entry.fullStatus = "Entpacken - Warten auf Parts";
|
||||||
|
entry.updatedAt = nowMs();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.emitState();
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user