fix(format): Simplify HDR regex and negate HDR10(+)? in CF
This commit is contained in:
parent
cd91d6f106
commit
10957dd0e8
|
|
@ -9,4 +9,14 @@ conditions:
|
||||||
pattern: HDR
|
pattern: HDR
|
||||||
required: true
|
required: true
|
||||||
type: release_title
|
type: release_title
|
||||||
|
- name: Not HDR10
|
||||||
|
type: release_title
|
||||||
|
required: true
|
||||||
|
negate: true
|
||||||
|
pattern: HDR10
|
||||||
|
- name: Not HDR10+
|
||||||
|
type: release_title
|
||||||
|
required: true
|
||||||
|
negate: true
|
||||||
|
pattern: HDR10+
|
||||||
tests: []
|
tests: []
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
name: HDR
|
name: HDR
|
||||||
pattern: (?<=^(?!.*\b(HLG|PQ|SDR)(\b|\d)).*?)\bHDR(?!10(\+|Plus)?)\b
|
pattern: \b(HDR)\b
|
||||||
description: 'This regex matches a `HDR` generalisation. i.e. only when it *is not*
|
description: 'This regex matches a `HDR` generalisation. This can be HDR10, HDR10+,
|
||||||
followed by any HDR format specifiers like , `10+`, or `10Plus` and only when `HLG`,
|
etc. '
|
||||||
`PQ` and `SDR` cannot be found. When matched, this pattern indicates an unknown
|
|
||||||
type of HDR - it can either by 10 or 10+. '
|
|
||||||
tags:
|
tags:
|
||||||
- Enhancement
|
- Enhancement
|
||||||
- Colour Grade
|
- Colour Grade
|
||||||
|
|
@ -12,20 +10,18 @@ tests:
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 2
|
id: 2
|
||||||
input: HDR+
|
input: HDR+
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 3
|
end: 3
|
||||||
start: 0
|
start: 0
|
||||||
matchedContent: HDR
|
matchedContent: HDR
|
||||||
matchedGroups:
|
matchedGroups:
|
||||||
- null
|
- HDR
|
||||||
- null
|
|
||||||
- null
|
|
||||||
passes: true
|
passes: true
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 3
|
id: 3
|
||||||
input: HDR10
|
input: HDR10
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -33,31 +29,7 @@ tests:
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 4
|
id: 4
|
||||||
input: HDR10+
|
input: HDR10+
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
|
||||||
matchedContent: null
|
|
||||||
matchedGroups: []
|
|
||||||
passes: true
|
|
||||||
- expected: false
|
|
||||||
id: 5
|
|
||||||
input: HLG HDR
|
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
|
||||||
matchSpan: null
|
|
||||||
matchedContent: null
|
|
||||||
matchedGroups: []
|
|
||||||
passes: true
|
|
||||||
- expected: false
|
|
||||||
id: 6
|
|
||||||
input: SDR HDR
|
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
|
||||||
matchSpan: null
|
|
||||||
matchedContent: null
|
|
||||||
matchedGroups: []
|
|
||||||
passes: true
|
|
||||||
- expected: false
|
|
||||||
id: 7
|
|
||||||
input: PQ HDR
|
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -65,7 +37,7 @@ tests:
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 8
|
id: 8
|
||||||
input: HDR10
|
input: HDR10
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -74,35 +46,31 @@ tests:
|
||||||
id: 9
|
id: 9
|
||||||
input: Barbie (2023) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR TrueHD Atmos 7.1
|
input: Barbie (2023) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR TrueHD Atmos 7.1
|
||||||
English-FraMeSToR
|
English-FraMeSToR
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 55
|
end: 55
|
||||||
start: 52
|
start: 52
|
||||||
matchedContent: HDR
|
matchedContent: HDR
|
||||||
matchedGroups:
|
matchedGroups:
|
||||||
- null
|
- HDR
|
||||||
- null
|
|
||||||
- null
|
|
||||||
passes: true
|
passes: true
|
||||||
- expected: true
|
- expected: true
|
||||||
id: 10
|
id: 10
|
||||||
input: Game of Thrones (2011) S06 2160p UHD BluRay REMUX HEVC DV HDR TrueHD Atmos
|
input: Game of Thrones (2011) S06 2160p UHD BluRay REMUX HEVC DV HDR TrueHD Atmos
|
||||||
7.1 English-FraMeSToR
|
7.1 English-FraMeSToR
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan:
|
matchSpan:
|
||||||
end: 61
|
end: 61
|
||||||
start: 58
|
start: 58
|
||||||
matchedContent: HDR
|
matchedContent: HDR
|
||||||
matchedGroups:
|
matchedGroups:
|
||||||
- null
|
- HDR
|
||||||
- null
|
|
||||||
- null
|
|
||||||
passes: true
|
passes: true
|
||||||
- expected: false
|
- expected: false
|
||||||
id: 11
|
id: 11
|
||||||
input: Liu lang di qiu 2 AKA The Wandering Earth II 2023 2160p CHN UHD Blu-ray DoVi
|
input: Liu lang di qiu 2 AKA The Wandering Earth II 2023 2160p CHN UHD Blu-ray DoVi
|
||||||
HDR10 HEVC TrueHD 7.1 Atmos-ANKO
|
HDR10 HEVC TrueHD 7.1 Atmos-ANKO
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -111,7 +79,7 @@ tests:
|
||||||
id: 12
|
id: 12
|
||||||
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10+ TrueHD
|
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10+ TrueHD
|
||||||
Atmos 7.1 English-WiLDCAT
|
Atmos 7.1 English-WiLDCAT
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
@ -120,7 +88,7 @@ tests:
|
||||||
id: 13
|
id: 13
|
||||||
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10P TrueHD
|
input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10P TrueHD
|
||||||
Atmos 7.1 English-WiLDCAT
|
Atmos 7.1 English-WiLDCAT
|
||||||
lastRun: '2025-04-02T20:12:32.851228'
|
lastRun: '2025-04-03T04:14:14.836165'
|
||||||
matchSpan: null
|
matchSpan: null
|
||||||
matchedContent: null
|
matchedContent: null
|
||||||
matchedGroups: []
|
matchedGroups: []
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue