Compare commits

..

No commits in common. "3e2d70485cd5e4e4d88f2da092a6e987021803a6" and "7141579289b9fa324b3c1244cf736585ba3fb331" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

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

View File

@ -1477,13 +1477,12 @@ export class DownloadManager extends EventEmitter {
continue; continue;
} }
const packageId = uuidv4(); const packageId = uuidv4();
const safeName = sanitizeFilename(pkg.name); const outputDir = ensureDirPath(this.settings.outputDir, pkg.name);
const outputDir = ensureDirPath(this.settings.outputDir, safeName);
const extractBase = this.settings.extractDir || path.join(this.settings.outputDir, "_entpackt"); const extractBase = this.settings.extractDir || path.join(this.settings.outputDir, "_entpackt");
const extractDir = this.settings.createExtractSubfolder ? ensureDirPath(extractBase, safeName) : extractBase; const extractDir = this.settings.createExtractSubfolder ? ensureDirPath(extractBase, pkg.name) : extractBase;
const packageEntry: PackageEntry = { const packageEntry: PackageEntry = {
id: packageId, id: packageId,
name: safeName, name: sanitizeFilename(pkg.name),
outputDir, outputDir,
extractDir, extractDir,
status: "queued", status: "queued",