Compare commits
No commits in common. "74d9047f4c72737e0fd47a733c6dc1839c5cf788" and "977a5c4175ca98bc91ae880b9133ad372a56c1d8" have entirely different histories.
74d9047f4c
...
977a5c4175
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "real-debrid-downloader",
|
||||
"version": "1.6.87",
|
||||
"version": "1.6.86",
|
||||
"description": "Desktop downloader",
|
||||
"main": "build/main/main/main.js",
|
||||
"author": "Sucukdeluxe",
|
||||
|
||||
@ -2509,31 +2509,9 @@ export class DownloadManager extends EventEmitter {
|
||||
return;
|
||||
}
|
||||
|
||||
const allMkvFiles = await this.collectFilesByExtensions(sourceDir, new Set([".mkv"]));
|
||||
if (allMkvFiles.length === 0) {
|
||||
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV gefunden`);
|
||||
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`);
|
||||
}
|
||||
const mkvFiles = await this.collectFilesByExtensions(sourceDir, new Set([".mkv"]));
|
||||
if (mkvFiles.length === 0) {
|
||||
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV nach Sample-Filter`);
|
||||
logger.info(`MKV-Sammelordner: pkg=${pkg.name}, keine MKV gefunden`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user