Release v1.7.1

This commit is contained in:
Sucukdeluxe
2026-03-07 03:52:41 +01:00
parent 576be53b83
commit 7737a4b0da
16 changed files with 831 additions and 134 deletions
+13
View File
@@ -78,6 +78,10 @@ describe("extractEpisodeToken", () => {
it("extracts double episode with single-digit numbers", () => {
expect(extractEpisodeToken("show-s1e1e2-720p")).toBe("S01E01E02");
});
it("extracts episode when title and season token are joined", () => {
expect(extractEpisodeToken("mdgp-carters02e01-720p")).toBe("S02E01");
});
});
describe("applyEpisodeTokenToFolderName", () => {
@@ -691,4 +695,13 @@ describe("buildAutoRenameBaseNameFromFolders", () => {
);
expect(result).toBe("Room.104.S04E01.GERMAN.DL.720p.WEBRiP.x264-LAW");
});
it("renames Carter when source joins title and season token", () => {
const result = buildAutoRenameBaseNameFromFoldersWithOptions(
["Carter.S02.GERMAN.DL.720p.HDTV.x264-MDGP"],
"mdgp-carters02e01-720p",
{ forceEpisodeForSeasonFolder: true }
);
expect(result).toBe("Carter.S02E01.GERMAN.DL.720p.HDTV.x264-MDGP");
});
});