Skip to content

Commit

Permalink
fix s print handling
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBeastLT committed Jul 8, 2024
1 parent da54425 commit d29c6c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ exports.addDefaults = /** @type Parser */ parser => {

// Source
parser.addHandler("source", /\b(?:H[DQ][ .-]*)?CAM(?:H[DQ])?(?:[ .-]*Rip)?\b/i, value("CAM"), { remove: true });
parser.addHandler("source", /\b(?:H[DQ][ .-]*)?S[ .-]*print/i, value("CAM"), { remove: true });
parser.addHandler("source", /\b(?:H[DQ][ .-]*)?S[ .-]+print/i, value("CAM"), { remove: true });
parser.addHandler("source", /\b(?:HD[ .-]*)?T(?:ELE)?S(?:YNC)?(?:Rip)?\b/i, value("TeleSync"), { remove: true });
parser.addHandler("source", /\b(?:HD[ .-]*)?T(?:ELE)?C(?:INE)?(?:Rip)?\b/, value("TeleCine"), { remove: true });
parser.addHandler("source", /\bBlu[ .-]*Ray\b(?=.*remux)/i, value("BluRay REMUX"), { remove: true });
Expand Down
13 changes: 13 additions & 0 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,17 @@ describe("Random releases", () => {
languages: ["latino"]
});
});

it("Sprint.2024.S01.COMPLETE.1080p.WEB.h264-EDITH[TGx]", () => {
const releaseName = "Sprint.2024.S01.COMPLETE.1080p.WEB.h264-EDITH[TGx]";
expect(parse(releaseName)).to.deep.equal({
title: "Sprint",
year: 2024,
seasons: [1],
season: 1,
resolution: "1080p",
codec: "h264",
group: "EDITH"
});
});
});

0 comments on commit d29c6c7

Please sign in to comment.