Release v1.6.14
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d5638b922d
commit
4e8e8eba66
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "real-debrid-downloader",
|
"name": "real-debrid-downloader",
|
||||||
"version": "1.6.13",
|
"version": "1.6.14",
|
||||||
"description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)",
|
"description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)",
|
||||||
"main": "build/main/main/main.js",
|
"main": "build/main/main/main.js",
|
||||||
"author": "Sucukdeluxe",
|
"author": "Sucukdeluxe",
|
||||||
|
|||||||
@ -2088,6 +2088,7 @@ export class DownloadManager extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const videoFiles = await this.collectVideoFiles(extractDir);
|
const videoFiles = await this.collectVideoFiles(extractDir);
|
||||||
|
logger.info(`Auto-Rename: ${videoFiles.length} Video-Dateien gefunden in ${extractDir}`);
|
||||||
let renamed = 0;
|
let renamed = 0;
|
||||||
|
|
||||||
// Collect additional folder candidates from package metadata (outputDir, item filenames)
|
// Collect additional folder candidates from package metadata (outputDir, item filenames)
|
||||||
@ -2135,6 +2136,7 @@ export class DownloadManager extends EventEmitter {
|
|||||||
forceEpisodeForSeasonFolder: true
|
forceEpisodeForSeasonFolder: true
|
||||||
});
|
});
|
||||||
if (!targetBaseName) {
|
if (!targetBaseName) {
|
||||||
|
logger.info(`Auto-Rename: kein Zielname für ${sourceName} (folders=${folderCandidates.join(", ")})`);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2171,6 +2173,7 @@ export class DownloadManager extends EventEmitter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
await this.renamePathWithExdevFallback(sourcePath, targetPath);
|
await this.renamePathWithExdevFallback(sourcePath, targetPath);
|
||||||
|
logger.info(`Auto-Rename: ${sourceName} -> ${path.basename(targetPath)}`);
|
||||||
renamed += 1;
|
renamed += 1;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if (this.isPathLengthRenameError(error)) {
|
if (this.isPathLengthRenameError(error)) {
|
||||||
|
|||||||
@ -661,4 +661,13 @@ describe("buildAutoRenameBaseNameFromFolders", () => {
|
|||||||
);
|
);
|
||||||
expect(result).toBeNull();
|
expect(result).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("renames Riviera S02 with single-digit episode s02e2", () => {
|
||||||
|
const result = buildAutoRenameBaseNameFromFoldersWithOptions(
|
||||||
|
["Riviera.S02.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP"],
|
||||||
|
"tvp-riviera-s02e2-720p",
|
||||||
|
{ forceEpisodeForSeasonFolder: true }
|
||||||
|
);
|
||||||
|
expect(result).toBe("Riviera.S02E02.GERMAN.DUBBED.DL.720p.WebHD.x264-TVP");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user