Simplify criterion regex in resolution overlays

No need for 2 separate regex for criterion
pull/2061/head
Minwei Xu 6 months ago committed by GitHub
parent 176d124047
commit 7da522f2f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -159,18 +159,14 @@ external_templates:
templates: templates:
edition: edition:
conditionals: conditionals:
regex1: regex:
conditions: conditions:
- key: enhanced - key: enhanced
value: '(?i)\bIMAX Enhanced\b|^(?=.*(DSNP|Disney\+|CORE(?=[ ._-]web[ ._-]?(dl|rip)\b)|\bBC(?=[ ._-]web[ ._-]?(dl|rip)\b)|IMAX[- .]Enhanced)\b)(?=.*\b(IMAX|IMAX[- .]Enhanced)\b).*' value: '(?i)\bIMAX Enhanced\b|^(?=.*(DSNP|Disney\+|CORE(?=[ ._-]web[ ._-]?(dl|rip)\b)|\bBC(?=[ ._-]web[ ._-]?(dl|rip)\b)|IMAX[- .]Enhanced)\b)(?=.*\b(IMAX|IMAX[- .]Enhanced)\b).*'
- key: imax - key: imax
value: '(?i)\bIMAX\b' value: '(?i)\bIMAX\b'
- key: criterion - key: criterion
value: '(?i)Criterion' value: '(?i)Criterion|\[CC\]'
regex2:
conditions:
- key: criterion
value: '(?i)\[CC\]'
optional: optional:
- search - search
- use_<<key>> - use_<<key>>
@ -185,8 +181,7 @@ templates:
filters: filters:
- edition: <<search>> - edition: <<search>>
- filepath.regex: - filepath.regex:
- <<regex1>> - <<regex>>
- <<regex2>>
- '(?i)edition-\b(4k )?<<search>>(s|ed)?\b' # New TRaSH naming - '(?i)edition-\b(4k )?<<search>>(s|ed)?\b' # New TRaSH naming
- '(?<=[0-9]{4}[)}>\]]\s)\b(4k )?<<search>>(s|ed)?\b' # Original TRaSH naming - '(?<=[0-9]{4}[)}>\]]\s)\b(4k )?<<search>>(s|ed)?\b' # Original TRaSH naming

Loading…
Cancel
Save