tweak(regex): Update Peacock Regex / Test Cases

This commit is contained in:
Seraphys
2025-09-03 19:00:35 -05:00
parent cb51f10575
commit ec8f0638f0
4 changed files with 28 additions and 180 deletions

View File

@@ -7,12 +7,7 @@ conditions:
- name: PCOK Regex - name: PCOK Regex
negate: false negate: false
pattern: Peacock TV pattern: Peacock TV
required: false required: true
type: release_title
- name: PCOK Rename Regex
negate: false
pattern: Peacock TV Rename
required: false
type: release_title type: release_title
- name: WEB-DL - name: WEB-DL
negate: false negate: false
@@ -20,10 +15,10 @@ conditions:
source: web_dl source: web_dl
type: source type: source
- name: WEBRip - name: WEBRip
type: source
required: false
negate: false negate: false
required: false
source: webrip source: webrip
type: source
tests: tests:
- conditionResults: - conditionResults:
- matches: true - matches: true

View File

@@ -1,10 +0,0 @@
name: Bravia Core Rename
pattern: \[(BCORE)\b|\b(BCORE)\]
description: Sony Pictures Core (formerly known as Bravia Core) is a video on demand
service from Sony for its televisions and smartphones, launched in April 2021. The
service offers the streaming of movies at up to 4K resolution provided by Sony Pictures
Entertainment. CORE stands for Centre of Real Entertainment.
tags:
- Streaming Service
- WEB-DL
tests: []

View File

@@ -1,85 +0,0 @@
name: Peacock TV Rename
pattern: \[(PCOK)\b|\b(PCOK)\]
description: Peacock is an American over-the-top subscription streaming service owned
and operated by Peacock TV, LLC, a subsidiary of NBCUniversal Media Group. The service
primarily features series and film content from NBCUniversal studios and other third-party
content providers (such as WWE and Hallmark Channel).
tags:
- Streaming Service
- WEB-DL
tests:
- expected: true
id: 1
input: The Day of the Jackal S01E05 1080p PCOK WEB-DL DDP5 1 H 264-STC
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 39
start: 29
matchedContent: 1080p PCOK
matchedGroups: []
passes: true
- expected: true
id: 2
input: Fight Night - The Million Dollar Heist (2024) S01E01 (2160p PCOK WEB-DL H265
SDR DDP 5.1 English - HONE)
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 64
start: 54
matchedContent: 2160p PCOK
matchedGroups: []
passes: true
- expected: true
id: 3
input: Halloween Kills 2021 1080p Peacock WebDL H264 AC3 Will1869
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 40
start: 27
matchedContent: Peacock WebDL
matchedGroups: []
passes: true
- expected: false
id: 4
input: Peacock.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-Cinefeel
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 5
input: Peacock.S02.1080p.iP.WEB-DL.AAC2.0.H.264-RNG
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 6
input: Banana Fish S01E16 Lo The Poor Peacock WEB h264-PLUTONiUM
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: true
id: 7
input: Kingsman The Secret Service 2014 1080p PCOK WEB-DL DDP 5 1 H 264-PiRaTeS
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 43
start: 33
matchedContent: 1080p PCOK
matchedGroups: []
passes: true
- expected: true
id: 8
input: Kingsman.The.Secret.Service.2014.1080p.PCOK.WEB-DL.DDP.5.1.H.264-PiRaTeS
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 43
start: 33
matchedContent: 1080p.PCOK
matchedGroups: []
passes: true

View File

@@ -1,6 +1,5 @@
name: Peacock TV name: Peacock TV
pattern: \b(?:(?:1080|2160|720)p(?:[ .]+)PCOK|(?:Peacock(?:[ .]+)Web-?DL|Web-?DL(?:[ pattern: \b(?:PCOK|(?:Peacock)(?=\s*.(?:WEB-?DL|WEBRIP|WEB)))\b
.]+)Peacock))\b
description: Peacock is an American over-the-top subscription streaming service owned description: Peacock is an American over-the-top subscription streaming service owned
and operated by Peacock TV, LLC, a subsidiary of NBCUniversal Media Group. The service and operated by Peacock TV, LLC, a subsidiary of NBCUniversal Media Group. The service
primarily features series and film content from NBCUniversal studios and other third-party primarily features series and film content from NBCUniversal studios and other third-party
@@ -9,78 +8,27 @@ tags:
- Streaming Service - Streaming Service
- WEB-DL - WEB-DL
tests: tests:
- expected: true - id: 1
id: 1 input: The Peacock Accountant 2 2025 2160p PCOK WEB-DL DD+ 5.1 Atmos DV H.265-FLUX
input: The Day of the Jackal S01E05 1080p PCOK WEB-DL DDP5 1 H 264-STC expected: true
lastRun: '2025-03-25T16:16:33.336288' - id: 2
matchSpan: input: The Peacock Accountant 2 2025 2160p Peacock WEBRIP DD+ 5.1 Atmos DV H.265-FLUX
end: 39 expected: true
start: 29 - id: 3
matchedContent: 1080p PCOK input: The.Peacock.Accountant.2.2025.2160p.Peacock.WEB-DL.DD+.5.1.Atmos.DV.H.265-FLUX
matchedGroups: [] expected: true
passes: true - id: 4
- expected: true input: 'Star Trek: Picard Peacock S03 2160p PCOK WEB-DL DTS-HD MA 5.1 H.265-FLUX'
id: 2 expected: true
input: Fight Night - The Million Dollar Heist (2024) S01E01 (2160p PCOK WEB-DL H265 - id: 5
SDR DDP 5.1 English - HONE) input: 'Star Trek: Picard Peacock S03 2160p Peacock WEBRIP DTS-HD MA 5.1 H.265-FLUX'
lastRun: '2025-03-25T16:16:33.336288' expected: true
matchSpan: - id: 6
end: 64 input: The.Terminal.List.Dark.Peacock.S01E04.THE.SOUND.OF.Peacock.2160p.PCOK.WEB-DL.DDP5.1.HDR.H.265-FLUX.mkv
start: 54 expected: true
matchedContent: 2160p PCOK - id: 7
matchedGroups: [] input: The.Terminal.List.Dark.Peacock.S01E04.THE.SOUND.OF.Peacock.2160p.Peacock.WEBRIP.DDP5.1.HDR.H.265-FLUX.mkv
passes: true expected: true
- expected: true - id: 8
id: 3 input: The.Terminal.List.Dark.Peacock.S01E04.THE.SOUND.OF.Peacock.2160p.Peacock.WEB.DDP5.1.HDR.H.265-FLUX.mkv
input: Halloween Kills 2021 1080p Peacock WebDL H264 AC3 Will1869 expected: true
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 40
start: 27
matchedContent: Peacock WebDL
matchedGroups: []
passes: true
- expected: false
id: 4
input: Peacock.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-Cinefeel
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 5
input: Peacock.S02.1080p.iP.WEB-DL.AAC2.0.H.264-RNG
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: false
id: 6
input: Banana Fish S01E16 Lo The Poor Peacock WEB h264-PLUTONiUM
lastRun: '2025-03-25T16:16:33.336288'
matchSpan: null
matchedContent: null
matchedGroups: []
passes: true
- expected: true
id: 7
input: Kingsman The Secret Service 2014 1080p PCOK WEB-DL DDP 5 1 H 264-PiRaTeS
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 43
start: 33
matchedContent: 1080p PCOK
matchedGroups: []
passes: true
- expected: true
id: 8
input: Kingsman.The.Secret.Service.2014.1080p.PCOK.WEB-DL.DDP.5.1.H.264-PiRaTeS
lastRun: '2025-03-25T16:16:33.336288'
matchSpan:
end: 43
start: 33
matchedContent: 1080p.PCOK
matchedGroups: []
passes: true