Honor configured parallel extraction slots

This commit is contained in:
Sucukdeluxe
2026-03-10 20:08:43 +01:00
parent ed4baf9240
commit 83640b8f1f
2 changed files with 39 additions and 4 deletions
+3 -4
View File
@@ -5868,10 +5868,9 @@ export class DownloadManager extends EventEmitter {
}
private async acquirePostProcessSlot(packageId: string): Promise<void> {
// Extract packages sequentially (one at a time) to focus I/O on finishing
// the earliest package first. maxParallelExtract is reserved for future
// intra-package parallelism.
const maxConcurrent = 1;
// Honor the user-facing "Parallele Entpackungen" setting for package-level
// post-processing so multiple episodes/packages can extract concurrently.
const maxConcurrent = Math.max(1, Math.min(8, this.settings.maxParallelExtract || 1));
if (this.packagePostProcessActive < maxConcurrent) {
this.packagePostProcessActive += 1;
return;