From 353ff32c42b3c1c31eba0195baf8b6bf5db31f47 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Sat, 11 Oct 2025 20:36:58 -0500 Subject: [PATCH] tweak(regex): Fix CRAV --- custom_formats/CRAV.yml | 7 +++++- regex_patterns/Crave Rename.yml | 38 +++++++++++++++++++++++++++++++++ regex_patterns/Crave.yml | 28 ++++++++++++++++++++++-- 3 files changed, 70 insertions(+), 3 deletions(-) create mode 100644 regex_patterns/Crave Rename.yml diff --git a/custom_formats/CRAV.yml b/custom_formats/CRAV.yml index ee9eddc..9041504 100644 --- a/custom_formats/CRAV.yml +++ b/custom_formats/CRAV.yml @@ -7,7 +7,12 @@ conditions: - name: CRAV Regex negate: false pattern: Crave - required: true + required: false + type: release_title +- name: CRAV Rename Regex + negate: false + pattern: Crave Rename + required: false type: release_title - name: WEB-DL negate: false diff --git a/regex_patterns/Crave Rename.yml b/regex_patterns/Crave Rename.yml new file mode 100644 index 0000000..44c5c16 --- /dev/null +++ b/regex_patterns/Crave Rename.yml @@ -0,0 +1,38 @@ +name: Crave Rename +pattern: \[(CRAV)\b|\b(CRAV)\] +description: Crave (originally CraveTV) is a Canadian subscription video on demand + service. The service competes directly with other subscription-based over-the-top + streaming services operating in Canada, primarily against American-based services. + The service features Bell Media original programming, exclusive Canadian access + to programming acquired from several U.S. television and streaming services, and + various theatrically-released films. Crave's major programming supplier is Warner + Bros. Discovery (HBO / Max and Warner Bros. films). Starz, offered in partnership + with Lionsgate. +tags: +- Streaming Service +- WEB-DL +tests: +- id: 1 + input: The CRAV Accountant 2 2025 2160p CRAV WEB-DL DD+ 5.1 Atmos DV H.265-FLUX + expected: true +- id: 2 + input: The CRAVE Accountant 2 2025 2160p CRAVE WEBRIP DD+ 5.1 Atmos DV H.265-FLUX + expected: true +- id: 3 + input: The.CRAV.Accountant.2.2025.2160p.CRAV.WEBDL.DD+.5.1.Atmos.DV.H.265-FLUX + expected: true +- id: 4 + input: 'Star Trek: Picard CRAV S03 2160p CRAV WEB-DL DTS-HD MA 5.1 H.265-FLUX' + expected: true +- id: 5 + input: 'Star Trek: Picard CRAVE S03 2160p CRAVE WEBRIP DTS-HD MA 5.1 H.265-FLUX' + expected: true +- id: 6 + input: The.Terminal.List.Dark.CRAV.S01E04.THE.SOUND.OF.CRAV.2160p.CRAV.WEB-DL.DDP5.1.HDR.H.265-FLUX.mkv + expected: true +- id: 7 + input: The.Terminal.List.Dark.CRAVE.S01E04.THE.SOUND.OF.CRAVE.2160p.CRAVE.WEBRIP.DDP5.1.HDR.H.265-FLUX.mkv + expected: true +- id: 8 + input: The.Terminal.List.Dark.CRAV.S01E04.THE.SOUND.OF.CRAV.2160p.CRAVE.WEBDL.DDP5.1.HDR.H.265-FLUX.mkv + expected: true diff --git a/regex_patterns/Crave.yml b/regex_patterns/Crave.yml index f987190..b7c2764 100644 --- a/regex_patterns/Crave.yml +++ b/regex_patterns/Crave.yml @@ -1,5 +1,5 @@ name: Crave -pattern: \b(?:CRAV(E)?(?=\s*.(?:WEB-?DL|WEBRIP)))\b +pattern: \b(CRAV(E)?)\b[ ._-]web[ ._-]?(dl|rip)?\b description: Crave (originally CraveTV) is a Canadian subscription video on demand service. The service competes directly with other subscription-based over-the-top streaming services operating in Canada, primarily against American-based services. @@ -11,4 +11,28 @@ description: Crave (originally CraveTV) is a Canadian subscription video on dema tags: - Streaming Service - WEB-DL -tests: [] +tests: +- id: 1 + input: The CRAV Accountant 2 2025 2160p CRAV WEB-DL DD+ 5.1 Atmos DV H.265-FLUX + expected: true +- id: 2 + input: The CRAVE Accountant 2 2025 2160p CRAVE WEBRIP DD+ 5.1 Atmos DV H.265-FLUX + expected: true +- id: 3 + input: The.CRAV.Accountant.2.2025.2160p.CRAV.WEBDL.DD+.5.1.Atmos.DV.H.265-FLUX + expected: true +- id: 4 + input: 'Star Trek: Picard CRAV S03 2160p CRAV WEB-DL DTS-HD MA 5.1 H.265-FLUX' + expected: true +- id: 5 + input: 'Star Trek: Picard CRAVE S03 2160p CRAVE WEBRIP DTS-HD MA 5.1 H.265-FLUX' + expected: true +- id: 6 + input: The.Terminal.List.Dark.CRAV.S01E04.THE.SOUND.OF.CRAV.2160p.CRAV.WEB-DL.DDP5.1.HDR.H.265-FLUX.mkv + expected: true +- id: 7 + input: The.Terminal.List.Dark.CRAVE.S01E04.THE.SOUND.OF.CRAVE.2160p.CRAVE.WEBRIP.DDP5.1.HDR.H.265-FLUX.mkv + expected: true +- id: 8 + input: The.Terminal.List.Dark.CRAV.S01E04.THE.SOUND.OF.CRAV.2160p.CRAVE.WEBDL.DDP5.1.HDR.H.265-FLUX.mkv + expected: true