feat: use shortened forms for CAM/TS/TC/SCR

This commit is contained in:
Viren070
2024-12-14 18:26:37 +00:00
parent 17ba0224c7
commit 530b4edb21
+6 -6
View File
@@ -16,9 +16,9 @@ const CONFIG = {
"DVDRip",
"HDTV",
"CAM",
"Telesync",
"Telecine",
"Screener",
"TS",
"TC",
"SCR",
"Unknown",
],
visualTags: ["HDR10+", "HDR10", "HDR", "DV", "IMAX", "AI"],
@@ -82,9 +82,9 @@ const REGEX_PATTERNS = {
HDTV: /(?<![^ [_\-.])((hd|pd)tv|tv[ .\-_]?rip|hdtv[ .\-_]?rip|dsr(ip)?|sat[ .\-_]?rip)(?=[ \]_.-]|$)/i,
// CAM/TS/SCR
CAM: /(?<![^ [_\-.])(cam|hdcam|cam[ .\-_]?rip)(?=[ \]_.-]|$)/i,
Telesync: /(?<![^ [_\-.])(telesync|ts|hd[ .\-_]?ts|pdvd|predvdrip)(?=[ \]_.-]|$)/i,
Telecine: /(?<![^ [_\-.])(telecine|tc|hd[ .\-_]?tc)(?=[ \]_.-]|$)/i,
Screener: /(?<![^ [_\-.])(((dvd|bd|web)?[ .\-_]?)?(scr(eener)?))(?=[ \]_.-]|$)/i,
TS: /(?<![^ [_\-.])(telesync|ts|hd[ .\-_]?ts|pdvd|predvdrip)(?=[ \]_.-]|$)/i,
TC: /(?<![^ [_\-.])(telecine|tc|hd[ .\-_]?tc)(?=[ \]_.-]|$)/i,
SCR: /(?<![^ [_\-.])(((dvd|bd|web)?[ .\-_]?)?(scr(eener)?))(?=[ \]_.-]|$)/i,
},
visualTags: {
"HDR10+": /(?<![^ [_\-.])(hdr10[ .\-_]?[+]?|hdr10plus)(?=[ \]_.-]|$)/i,