Compare commits

..

No commits in common. "16a59acaeff79cb111d3b65eb9f86c7c53a5e777" and "ee69dcf4cc9ad45b624a68c873873f6cfcbe2b56" have entirely different histories.

2 changed files with 3 additions and 7 deletions

View File

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

View File

@ -10116,12 +10116,8 @@ export class DownloadManager extends EventEmitter {
for (const part of parts) {
const partName = path.basename(part).toLowerCase();
hybridFileNames.add(partName);
// Collect archive base stems (strip all archive extensions) to find companion files
const stem = partName
.replace(/\.part\d+\.rar$/i, "")
.replace(/\.(rar|r\d{2,3}|zip|z\d{2,3}|7z|tar|gz|bz2|xz|tgz|tbz2|txz|rev)$/i, "")
.replace(/\.(zip|7z)\.\d{3}$/i, "")
.replace(/\.\d{3}$/i, "");
// Collect archive base stems (without .partNN.rar / .rar / .rNN) to find companion files
const stem = partName.replace(/\.part\d+\.rar$|\.r\d{2,3}$|\.rar$/i, "");
if (stem && stem !== partName) archiveStems.add(stem);
}
hybridFileNames.add(path.basename(archiveKey).toLowerCase());