Release v1.5.97
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
27833615b7
commit
18862bb8e0
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.5.96",
|
"version": "1.5.97",
|
||||||
"description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)",
|
"description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -5828,17 +5828,19 @@ export class DownloadManager extends EventEmitter {
|
|||||||
const hybridArchiveStartTimes = new Map<string, number>();
|
const hybridArchiveStartTimes = new Map<string, number>();
|
||||||
let hybridLastEmitAt = 0;
|
let hybridLastEmitAt = 0;
|
||||||
|
|
||||||
// Mark hybrid items as pending, others as waiting for parts
|
// Mark items based on whether their archive is actually ready for extraction.
|
||||||
// If all items are completed, no item should show "Warten auf Parts"
|
// Only items whose archive is in readyArchives get "Ausstehend"; others keep
|
||||||
const hybridItemIds = new Set(hybridItems.map((item) => item.id));
|
// "Warten auf Parts" to avoid flicker between hybrid runs.
|
||||||
const allDownloaded = completedItems.length >= items.length;
|
const allDownloaded = completedItems.length >= items.length;
|
||||||
for (const entry of completedItems) {
|
for (const entry of completedItems) {
|
||||||
if (isExtractedLabel(entry.fullStatus)) {
|
if (isExtractedLabel(entry.fullStatus)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (hybridItemIds.has(entry.id)) {
|
if (allDownloaded) {
|
||||||
|
// Everything downloaded — all remaining items will be extracted
|
||||||
entry.fullStatus = "Entpacken - Ausstehend";
|
entry.fullStatus = "Entpacken - Ausstehend";
|
||||||
} else if (allDownloaded) {
|
} else if (hybridFileNames.has((entry.fileName || "").toLowerCase()) ||
|
||||||
|
(entry.targetPath && hybridFileNames.has(path.basename(entry.targetPath).toLowerCase()))) {
|
||||||
entry.fullStatus = "Entpacken - Ausstehend";
|
entry.fullStatus = "Entpacken - Ausstehend";
|
||||||
} else {
|
} else {
|
||||||
entry.fullStatus = "Entpacken - Warten auf Parts";
|
entry.fullStatus = "Entpacken - Warten auf Parts";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user