Compare commits
2 Commits
977a5c4175
...
74d9047f4c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
74d9047f4c | ||
|
|
06e649ba5b |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.6.86",
|
"version": "1.6.87",
|
||||||
"description": "Desktop downloader",
|
"description": "Desktop downloader",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -2509,12 +2509,34 @@ export class DownloadManager extends EventEmitter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const mkvFiles = await this.collectFilesByExtensions(sourceDir, new Set([".mkv"]));
|
const allMkvFiles = await this.collectFilesByExtensions(sourceDir, new Set([".mkv"]));
|
||||||
if (mkvFiles.length === 0) {
|
if (allMkvFiles.length === 0) {
|
||||||
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV gefunden`);
|
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV gefunden`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filter: Sample-Dateien ausschließen (Sample-Ordner + "sample" im Dateinamen)
|
||||||
|
const sampleDirNames = new Set(["sample", "samples"]);
|
||||||
|
const sampleTokenRe = /(^|[._\-\s])sample([._\-\s]|$)/i;
|
||||||
|
const mkvFiles: string[] = [];
|
||||||
|
let sampleSkipped = 0;
|
||||||
|
for (const filePath of allMkvFiles) {
|
||||||
|
const parentDir = path.basename(path.dirname(filePath)).toLowerCase();
|
||||||
|
const stem = path.parse(path.basename(filePath)).name;
|
||||||
|
if (sampleDirNames.has(parentDir) || sampleTokenRe.test(stem)) {
|
||||||
|
sampleSkipped += 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
mkvFiles.push(filePath);
|
||||||
|
}
|
||||||
|
if (sampleSkipped > 0) {
|
||||||
|
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, ${sampleSkipped} Sample-MKV(s) übersprungen`);
|
||||||
|
}
|
||||||
|
if (mkvFiles.length === 0) {
|
||||||
|
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV nach Sample-Filter`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const reservedTargets = new Set<string>();
|
const reservedTargets = new Set<string>();
|
||||||
let moved = 0;
|
let moved = 0;
|
||||||
let skipped = 0;
|
let skipped = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user