From abc72653dc705547a268d0d6512e4d4bcc1c9d1a Mon Sep 17 00:00:00 2001 From: Seraphys Date: Fri, 16 May 2025 14:22:48 -0500 Subject: [PATCH] tweak(format): Fix HMAX Rename Import --- custom_formats/HMAX.yml | 7 ++- regex_patterns/HBO Max Rename.yml | 75 +++++++++++++++++++++++++++++++ regex_patterns/HBO Max.yml | 1 - 3 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 regex_patterns/HBO Max Rename.yml diff --git a/custom_formats/HMAX.yml b/custom_formats/HMAX.yml index 95336ee..04cbf27 100644 --- a/custom_formats/HMAX.yml +++ b/custom_formats/HMAX.yml @@ -7,8 +7,13 @@ conditions: - name: HMAX Regex negate: false pattern: HBO Max - required: true + required: false type: release_title +- name: HMAX Rename Regex + type: release_title + required: false + negate: false + pattern: HBO Max Rename - name: WEB-DL negate: false required: true diff --git a/regex_patterns/HBO Max Rename.yml b/regex_patterns/HBO Max Rename.yml new file mode 100644 index 0000000..6f3ee98 --- /dev/null +++ b/regex_patterns/HBO Max Rename.yml @@ -0,0 +1,75 @@ +name: HBO Max Rename +pattern: \[(HMAX)\b|\b(HMAX)\] +description: HBO Max is an American subscription video-on-demand streaming service + that offers a range of original programming and content from WarnerMedia's vast + library, encompassing brands such as Warner Bros., CNN, Cartoon Network, TBS, and + Turner Classic Movies. In mid-to-late 2023, HBO Max underwent a rebranding to "Max". +tags: +- Streaming Service +- WEB-DL +- WEBRip +tests: +- expected: true + id: 1 + input: The Many Saints of Newark 2021 1080p HBOMAX WEBRiP x264 WAV-CREATiVE24 + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: + end: 43 + start: 37 + matchedContent: HBOMAX + matchedGroups: + - HBOMAX + - RiP + passes: true +- expected: true + id: 2 + input: Looney Tunes Cartoons S04 1080p HBOM WEB-DL DD5.1 H.264-NTb + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: + end: 36 + start: 32 + matchedContent: HBOM + matchedGroups: + - HBOM + - DL + passes: true +- expected: true + id: 3 + input: 12 oz Mouse S01 1080p HBOMax WEB-DL DDP2 x264-Mr Lahey + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: + end: 28 + start: 22 + matchedContent: HBOMax + matchedGroups: + - HBOMax + - DL + passes: true +- expected: true + id: 4 + input: Silicon Valley S01 1080p HMAX WEB-DL DD5 1 H 264-PHOENiX + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: + end: 29 + start: 25 + matchedContent: HMAX + matchedGroups: + - HMAX + - DL + passes: true +- expected: false + id: 5 + input: A Discovery of Witches S03 1080p HBO WEB-DL AAC 2.0 H.264 + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 6 + input: The Yin Yang Master Zero 2024 1080p BluRay REMUX AVC DTS-HD MA 7 1-HBO + lastRun: '2024-12-06T04:48:56.790473' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true diff --git a/regex_patterns/HBO Max.yml b/regex_patterns/HBO Max.yml index fa44847..eb11739 100644 --- a/regex_patterns/HBO Max.yml +++ b/regex_patterns/HBO Max.yml @@ -7,7 +7,6 @@ description: HBO Max is an American subscription video-on-demand streaming servi tags: - Streaming Service - WEB-DL -- WEBRip tests: - expected: true id: 1