From 0ac2c9dd0c3c7a408efa944c2cc09a71cd57068b Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Mon, 6 Jan 2025 16:19:26 +1050 Subject: [PATCH] feat(format): New CF: Non Retail HDR - Matches releases with non retail HDR from specific release groups (notably from torrentleech) --- custom_formats/Non Retail HDR.yml | 54 ++++++++++++++ regex_patterns/Non Retail HDR Formats.yml | 91 +++++++++++++++++++++++ regex_patterns/Non Retail HDR Groups.yml | 18 +++++ 3 files changed, 163 insertions(+) create mode 100644 custom_formats/Non Retail HDR.yml create mode 100644 regex_patterns/Non Retail HDR Formats.yml create mode 100644 regex_patterns/Non Retail HDR Groups.yml diff --git a/custom_formats/Non Retail HDR.yml b/custom_formats/Non Retail HDR.yml new file mode 100644 index 0000000..b080928 --- /dev/null +++ b/custom_formats/Non Retail HDR.yml @@ -0,0 +1,54 @@ +name: Non Retail HDR +description: 'Matches groups who produce non-retail HDR10+ or Dolby Vision. ' +tags: +- HDR +- Release Group +- Unwanted +conditions: +- name: HDR10+ or DoVi + negate: false + pattern: Non Retail HDR Formats + required: true + type: release_title +- name: Groups + negate: false + pattern: Non Retail HDR Groups + required: true + type: release_title +tests: +- conditionResults: + - matches: true + name: HDR10+ or DoVi + negate: false + pattern: Non Retail HDR Formats + required: true + type: release_title + - matches: true + name: Groups + negate: false + pattern: Non Retail HDR Groups + required: true + type: release_title + expected: true + id: 1 + input: Longlegs 2024 2160p BluRay REMUX DTS-HD MA 5 1 DV HDR H 265-SasukeducK + lastRun: '2025-01-06T14:48:25.564813' + passes: true +- conditionResults: + - matches: true + name: HDR10+ or DoVi + negate: false + pattern: Non Retail HDR Formats + required: true + type: release_title + - matches: false + name: Groups + negate: false + pattern: Non Retail HDR Groups + required: true + type: release_title + expected: false + id: 2 + input: Longlegs 2024 UHD BluRay 2160p DTS-HD MA 5.1 HDR10+ HEVC HYBRID REMUX-126811 + lastRun: '2025-01-06T14:48:25.564813' + passes: true diff --git a/regex_patterns/Non Retail HDR Formats.yml b/regex_patterns/Non Retail HDR Formats.yml new file mode 100644 index 0000000..c3447ee --- /dev/null +++ b/regex_patterns/Non Retail HDR Formats.yml @@ -0,0 +1,91 @@ +name: Non Retail HDR Formats +pattern: (?:(?<=^(?!.*\b(HLG|PQ|SDR)(\b|\d)).*?)HDR10(\+|P(lus)?))|\b(dv(?![ .](HLG|SDR))|dovi|dolby[ + .]?vision)\b +description: 'Matches Dolby Vision OR HDR10+. Needed to match release groups who create + custom HDR layers. ' +tags: +- Enhancement +- Colour Grade +- HDR +tests: +- expected: true + id: 5 + input: MovieName.1080p.DV.mkv + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: + end: 18 + start: 16 + matchedContent: DV + matchedGroups: + - null + - null + - null + - null + - DV + - null + passes: true +- expected: true + id: 6 + input: MovieName.4K.Dolby Vision.IMAX.mkv + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: + end: 25 + start: 13 + matchedContent: Dolby Vision + matchedGroups: + - null + - null + - null + - null + - Dolby Vision + - null + passes: true +- expected: false + id: 7 + input: MovieName.2023.4K.DV.HLG.mkv + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 8 + input: MovieName.2023.4K.DV.SDR.mkv + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: true + id: 9 + input: MovieName.4K.DV.SDR.Dovi.mkv + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: + end: 24 + start: 20 + matchedContent: Dovi + matchedGroups: + - null + - null + - null + - null + - Dovi + - null + passes: true +- expected: true + id: 10 + input: Schindler's List (1993) 2160p UHD BluRay Hybrid REMUX HEVC DV HDR10+ TrueHD + Atmos 7.1 English-WiLDCAT + lastRun: '2025-01-06T14:39:44.667920' + matchSpan: + end: 61 + start: 59 + matchedContent: DV + matchedGroups: + - null + - null + - null + - null + - DV + - null + passes: true diff --git a/regex_patterns/Non Retail HDR Groups.yml b/regex_patterns/Non Retail HDR Groups.yml new file mode 100644 index 0000000..1f59f51 --- /dev/null +++ b/regex_patterns/Non Retail HDR Groups.yml @@ -0,0 +1,18 @@ +name: Non Retail HDR Groups +pattern: (?<=^|[\s.-])VECTOR|BiTOR|DepraveD|SasukeducK|tarunk9c\b +description: Matches groups that produce non retail HDR. +tags: +- Release Group +- HDR +- Unwanted +tests: +- expected: true + id: 1 + input: Longlegs 2024 2160p BluRay REMUX DTS-HD MA 5 1 DV HDR H 265-SasukeducK + lastRun: '2025-01-06T14:40:34.463173' + matchSpan: + end: 70 + start: 60 + matchedContent: SasukeducK + matchedGroups: [] + passes: true