fix(regex): Fixed repack pattern

This commit is contained in:
appuser 2025-09-07 21:08:47 -07:00
parent ee8edaa3b9
commit 05b4392788
4 changed files with 75 additions and 64 deletions

View File

@ -9,4 +9,16 @@ conditions:
pattern: Dolby Vision (Without Fallback) pattern: Dolby Vision (Without Fallback)
required: true required: true
type: release_title type: release_title
tests: [] tests:
- conditionResults:
- matches: false
name: Dolby Vision (Without Fallback)
negate: false
pattern: Dolby Vision (Without Fallback)
required: true
type: release_title
expected: false
id: 1
input: Togo (2019) {tmdb-606856} [WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-SiC.mkv
lastRun: '2025-09-07T20:47:35.280458'
passes: true

View File

@ -10,7 +10,7 @@ tests:
- expected: false - expected: false
id: 1 id: 1
input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265-FLUX input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.HDR.H.265-FLUX
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -19,7 +19,7 @@ tests:
id: 2 id: 2
input: "\t Barbie (2023) (2160p AMZN WEB-DL Hybrid H265 DV HDR10+ DDP Atmos 5.1\ input: "\t Barbie (2023) (2160p AMZN WEB-DL Hybrid H265 DV HDR10+ DDP Atmos 5.1\
\ English - HONE)" \ English - HONE)"
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -27,7 +27,7 @@ tests:
- expected: true - expected: true
id: 3 id: 3
input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.H.265-FLUX input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.H.265-FLUX
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: matchSpan:
end: 43 end: 43
start: 41 start: 41
@ -40,7 +40,7 @@ tests:
- expected: true - expected: true
id: 4 id: 4
input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.H.265-FLUX.mkv input: Barbie.2023.2160p.MA.WEB-DL.DDP5.1.Atmos.DV.H.265-FLUX.mkv
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: matchSpan:
end: 43 end: 43
start: 41 start: 41
@ -54,7 +54,7 @@ tests:
id: 5 id: 5
input: Killers of the Flower Moon (2023) {tmdb-466420} [iT][WEBDL-2160p][DV HDR10Plus][EAC3 input: Killers of the Flower Moon (2023) {tmdb-466420} [iT][WEBDL-2160p][DV HDR10Plus][EAC3
Atmos 5.1][h265]-FLUX.mkv Atmos 5.1][h265]-FLUX.mkv
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -62,7 +62,7 @@ tests:
- expected: false - expected: false
id: 6 id: 6
input: Togo (2019) {tmdb-606856} [WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-SiC.mkv input: Togo (2019) {tmdb-606856} [WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][HEVC]-SiC.mkv
lastRun: '2025-09-07T20:45:02.828578' lastRun: '2025-09-07T20:48:30.215110'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []

View File

@ -1,5 +1,5 @@
name: Repack1 name: Repack1
pattern: \b(re(pack|rip)|proper)\b pattern: \bre(?:pack|rip)\b|(?<!\A)\bproper\b
description: 'Matches ''PROPER'' or ''REPACK'' or ''RERIP'' only when they appear description: 'Matches ''PROPER'' or ''REPACK'' or ''RERIP'' only when they appear
after a year (4 digits) but not before one. after a year (4 digits) but not before one.
@ -14,72 +14,58 @@ tests:
- expected: true - expected: true
id: 1 id: 1
input: The Zone of Interest 2023 PROPER 2160p UHD BluRay TrueHD 7.1 Atmos HDR x265-MainFrame input: The Zone of Interest 2023 PROPER 2160p UHD BluRay TrueHD 7.1 Atmos HDR x265-MainFrame
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan:
end: 32 end: 32
start: 26 start: 26
matchedContent: PROPER matchedContent: PROPER
matchedGroups: matchedGroups: []
- PROPER
- null
passes: true passes: true
- expected: false - expected: false
id: 2 id: 2
input: Proper.Pronouns.2020.720p.WEB-DL.AAC2.0.x264-ZTR.mkv input: Proper.Pronouns.2020.720p.WEB-DL.AAC2.0.x264-ZTR.mkv
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan: null
end: 6 matchedContent: null
start: 0 matchedGroups: []
matchedContent: Proper passes: true
matchedGroups:
- Proper
- null
passes: false
- expected: true - expected: true
id: 3 id: 3
input: Proper.Pronouns.2020.720p.PROPER.WEB-DL.AAC2.0.x264-ZTR.mkv input: Proper.Pronouns.2020.720p.PROPER.WEB-DL.AAC2.0.x264-ZTR.mkv
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan:
end: 6 end: 32
start: 0 start: 26
matchedContent: Proper matchedContent: PROPER
matchedGroups: matchedGroups: []
- Proper
- null
passes: true passes: true
- expected: true - expected: true
id: 4 id: 4
input: Sonic.the.Hedgehog.3.2024.REPACK.2160p.WEB-DL.DDP5.1.Atmos.DoVi.HDR.H.265-FLUX input: Sonic.the.Hedgehog.3.2024.REPACK.2160p.WEB-DL.DDP5.1.Atmos.DoVi.HDR.H.265-FLUX
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan:
end: 32 end: 32
start: 26 start: 26
matchedContent: REPACK matchedContent: REPACK
matchedGroups: matchedGroups: []
- REPACK
- PACK
passes: true passes: true
- expected: true - expected: true
id: 5 id: 5
input: roommate.wanted.2015.rerip.720p.bluray.x264-rusted.mkv input: roommate.wanted.2015.rerip.720p.bluray.x264-rusted.mkv
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan:
end: 26 end: 26
start: 21 start: 21
matchedContent: rerip matchedContent: rerip
matchedGroups: matchedGroups: []
- rerip
- rip
passes: true passes: true
- expected: true - expected: true
id: 6 id: 6
input: Game of Thrones S01 REPACK 2160p MAX WEB-DL TrueHD 7.1 Atmos DV HDR H.265-Kitsune input: Game of Thrones S01 REPACK 2160p MAX WEB-DL TrueHD 7.1 Atmos DV HDR H.265-Kitsune
lastRun: '2025-06-17T18:42:29.675411' lastRun: '2025-09-07T21:05:49.654245'
matchSpan: matchSpan:
end: 26 end: 26
start: 20 start: 20
matchedContent: REPACK matchedContent: REPACK
matchedGroups: matchedGroups: []
- REPACK
- PACK
passes: true passes: true

View File

@ -7,7 +7,7 @@ tests:
- expected: true - expected: true
id: 1 id: 1
input: Zenimation.S01.Extended.Edition.720p.DSNP.WEB-DL.DDP5.1.H.264-LAZY input: Zenimation.S01.Extended.Edition.720p.DSNP.WEB-DL.DDP5.1.H.264-LAZY
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 23 end: 23
start: 15 start: 15
@ -19,7 +19,7 @@ tests:
- expected: true - expected: true
id: 2 id: 2
input: Vikings Extended S05 1080p BluRay REMUX AVC DTS-HD MA 5.1-FraMeSToR input: Vikings Extended S05 1080p BluRay REMUX AVC DTS-HD MA 5.1-FraMeSToR
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 16 end: 16
start: 8 start: 8
@ -31,7 +31,7 @@ tests:
- expected: false - expected: false
id: 3 id: 3
input: My Very Extended Family input: My Very Extended Family
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 16 end: 16
start: 8 start: 8
@ -43,7 +43,7 @@ tests:
- expected: false - expected: false
id: 4 id: 4
input: Pente lepta akoma AKA Extended Play input: Pente lepta akoma AKA Extended Play
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 30 end: 30
start: 22 start: 22
@ -55,7 +55,7 @@ tests:
- expected: false - expected: false
id: 5 id: 5
input: Uncut.2023.1080p.AMZN.WEB-DL.DDP2.0.H.264-LLL.mkv input: Uncut.2023.1080p.AMZN.WEB-DL.DDP2.0.H.264-LLL.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -63,7 +63,7 @@ tests:
- expected: true - expected: true
id: 6 id: 6
input: The Punisher (1989) Remastered Uncut 1080p BluRay x265 SDR DDP 5.1 English-Ralphy input: The Punisher (1989) Remastered Uncut 1080p BluRay x265 SDR DDP 5.1 English-Ralphy
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 36 end: 36
start: 31 start: 31
@ -75,7 +75,7 @@ tests:
- expected: false - expected: false
id: 7 id: 7
input: The Naked Director S01 2160p NF WEB-DL Dual-Audio DD+ 5.1 H.265-HONE input: The Naked Director S01 2160p NF WEB-DL Dual-Audio DD+ 5.1 H.265-HONE
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -83,7 +83,7 @@ tests:
- expected: true - expected: true
id: 8 id: 8
input: Midsommar.2019.PROPER.Directors.Cut.UHD.BluRay.1080p.DDP.5.1.DoVi.HDR10.x265-SM737.mkv input: Midsommar.2019.PROPER.Directors.Cut.UHD.BluRay.1080p.DDP.5.1.DoVi.HDR10.x265-SM737.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 31 end: 31
start: 22 start: 22
@ -95,7 +95,7 @@ tests:
- expected: false - expected: false
id: 9 id: 9
input: George.Michael.Freedom.Uncut.2022.1080p.AMZN.WEB-DL.DDP5.1.H.264-PTP.mkv input: George.Michael.Freedom.Uncut.2022.1080p.AMZN.WEB-DL.DDP5.1.H.264-PTP.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 28 end: 28
start: 23 start: 23
@ -107,7 +107,7 @@ tests:
- expected: false - expected: false
id: 10 id: 10
input: Tupac.Uncensored.and.Uncut.The.Lost.Prison.Tapes.2011.DVDRip.x264-HANDJOB.mkv input: Tupac.Uncensored.and.Uncut.The.Lost.Prison.Tapes.2011.DVDRip.x264-HANDJOB.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 16 end: 16
start: 6 start: 6
@ -119,7 +119,7 @@ tests:
- expected: false - expected: false
id: 11 id: 11
input: Friedkin.Uncut.2018.1080p.MUBI.WEB-DL.AAC2.0.H.264-BdC.mkv input: Friedkin.Uncut.2018.1080p.MUBI.WEB-DL.AAC2.0.H.264-BdC.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 14 end: 14
start: 9 start: 9
@ -131,7 +131,7 @@ tests:
- expected: false - expected: false
id: 12 id: 12
input: Sniper.Special.Ops.2016.720p.BluRay.DD5.1.x264-SpaceHD input: Sniper.Special.Ops.2016.720p.BluRay.DD5.1.x264-SpaceHD
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 14 end: 14
start: 7 start: 7
@ -143,7 +143,7 @@ tests:
- expected: true - expected: true
id: 13 id: 13
input: Revhead.Miduga.Special.Edition-SKIDROW input: Revhead.Miduga.Special.Edition-SKIDROW
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 22 end: 22
start: 15 start: 15
@ -155,7 +155,7 @@ tests:
- expected: false - expected: false
id: 14 id: 14
input: Pointless.Celebrities.S17E09.Special.720p.WEB-DL.AAC2.0.H.264-BTN input: Pointless.Celebrities.S17E09.Special.720p.WEB-DL.AAC2.0.H.264-BTN
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 36 end: 36
start: 29 start: 29
@ -168,7 +168,7 @@ tests:
id: 15 id: 15
input: Land of the Dead 2005 Unrated DC REPACK SHOUT 1080p UHD BluRay DD 5 1 Atmos input: Land of the Dead 2005 Unrated DC REPACK SHOUT 1080p UHD BluRay DD 5 1 Atmos
DV HDR x265-SQS DV HDR x265-SQS
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 29 end: 29
start: 22 start: 22
@ -180,7 +180,7 @@ tests:
- expected: false - expected: false
id: 16 id: 16
input: 'Unrated: The Movie' input: 'Unrated: The Movie'
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -188,7 +188,7 @@ tests:
- expected: true - expected: true
id: 17 id: 17
input: Who Framed Roger Rabbit 1988 Uncensored 1080p HDTV DD5.1 H.264.mkv input: Who Framed Roger Rabbit 1988 Uncensored 1080p HDTV DD5.1 H.264.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 39 end: 39
start: 29 start: 29
@ -200,7 +200,7 @@ tests:
- expected: true - expected: true
id: 18 id: 18
input: The Veil Uncensored S01 2021 1080p WEB-DL AAC 2.0 H.264-Solonese input: The Veil Uncensored S01 2021 1080p WEB-DL AAC 2.0 H.264-Solonese
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 19 end: 19
start: 9 start: 9
@ -212,7 +212,7 @@ tests:
- expected: false - expected: false
id: 19 id: 19
input: Uncensored 2018 S06E11 Tamela Mann 720p HDTV x264-CRiMSON input: Uncensored 2018 S06E11 Tamela Mann 720p HDTV x264-CRiMSON
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: null matchSpan: null
matchedContent: null matchedContent: null
matchedGroups: [] matchedGroups: []
@ -220,7 +220,7 @@ tests:
- expected: true - expected: true
id: 20 id: 20
input: Zodiac.2007.Directors.Cut.Bluray.1080p.TrueHD.5.1.AVC.REMUX-FraMeSToR.mkv input: Zodiac.2007.Directors.Cut.Bluray.1080p.TrueHD.5.1.AVC.REMUX-FraMeSToR.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 21 end: 21
start: 12 start: 12
@ -233,7 +233,7 @@ tests:
id: 21 id: 21
input: X-Men Days of Future Past 2014 The Rogue Cut 2160p MA WEB-DL TrueHD 7 1 DV input: X-Men Days of Future Past 2014 The Rogue Cut 2160p MA WEB-DL TrueHD 7 1 DV
HDR10+ H 265-DRX HDR10+ H 265-DRX
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 44 end: 44
start: 41 start: 41
@ -245,7 +245,7 @@ tests:
- expected: true - expected: true
id: 22 id: 22
input: The.Wicker.Man.The.Final.Cut.1973.UHD.BluRay.2160p.FLAC.2.0.DV.HEVC.REMUX-FraMeSToR input: The.Wicker.Man.The.Final.Cut.1973.UHD.BluRay.2160p.FLAC.2.0.DV.HEVC.REMUX-FraMeSToR
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 28 end: 28
start: 25 start: 25
@ -257,7 +257,7 @@ tests:
- expected: true - expected: true
id: 23 id: 23
input: Twin Peaks Alternate International Version 1989 720p BluRay DTD 5.1 x264-reward input: Twin Peaks Alternate International Version 1989 720p BluRay DTD 5.1 x264-reward
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 42 end: 42
start: 35 start: 35
@ -269,7 +269,7 @@ tests:
- expected: true - expected: true
id: 24 id: 24
input: Trainspotting.1996.Collectors.Edition.1080P.BluRay.DD.5.1.X265-Ralphy.mkv input: Trainspotting.1996.Collectors.Edition.1080P.BluRay.DD.5.1.X265-Ralphy.mkv
lastRun: '2025-02-26T04:33:39.532784' lastRun: '2025-09-07T21:07:45.204052'
matchSpan: matchSpan:
end: 37 end: 37
start: 30 start: 30
@ -278,3 +278,16 @@ tests:
- Edition - Edition
- '' - ''
passes: true passes: true
- expected: true
id: 25
input: Apocalypse Now (1979) {tmdb-28} {edition-Final Cut} [Remux-2160p][DV HDR10][TrueHD
Atmos 7.1][x265]-FraMeSToR.mkv
lastRun: '2025-09-07T21:07:45.204052'
matchSpan:
end: 50
start: 47
matchedContent: Cut
matchedGroups:
- Cut
- ''
passes: true