Compare commits
No commits in common. "f0c37bed8077a2f089ee7a7e5265460f282c6e7a" and "8cc08a422f5a29f2a9ee5510887eeb054790d717" have entirely different histories.
f0c37bed80
...
8cc08a422f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.7.108",
|
"version": "1.7.107",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -3307,7 +3307,6 @@ export class DownloadManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const sampleTokenRe = /(^|[._\-\s])sample([._\-\s]|$)/i;
|
|
||||||
for (const sourcePath of videoFiles) {
|
for (const sourcePath of videoFiles) {
|
||||||
if (shouldAbort?.()) {
|
if (shouldAbort?.()) {
|
||||||
return renamed;
|
return renamed;
|
||||||
@ -3315,13 +3314,6 @@ export class DownloadManager extends EventEmitter {
|
|||||||
const sourceName = path.basename(sourcePath);
|
const sourceName = path.basename(sourcePath);
|
||||||
const sourceExt = path.extname(sourceName);
|
const sourceExt = path.extname(sourceName);
|
||||||
const sourceBaseName = path.basename(sourceName, sourceExt);
|
const sourceBaseName = path.basename(sourceName, sourceExt);
|
||||||
|
|
||||||
// Skip sample files — renaming them strips the "-sample" suffix,
|
|
||||||
// making them indistinguishable from the main MKV and causing (2)
|
|
||||||
// duplicates during MKV collection.
|
|
||||||
if (sampleTokenRe.test(sourceBaseName)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
const folderCandidates: string[] = [];
|
const folderCandidates: string[] = [];
|
||||||
let currentDir = path.dirname(sourcePath);
|
let currentDir = path.dirname(sourcePath);
|
||||||
while (currentDir && isPathInsideDir(currentDir, extractDir)) {
|
while (currentDir && isPathInsideDir(currentDir, extractDir)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user