From 43a88c276f5ee057c7b47bd3613636587b6cd440 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Fri, 16 May 2025 15:02:12 -0500 Subject: [PATCH] tweak(format): Fix Peacock Rename Import --- custom_formats/PCOK.yml | 7 ++- regex_patterns/Peacock TV Rename.yml | 85 ++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 regex_patterns/Peacock TV Rename.yml diff --git a/custom_formats/PCOK.yml b/custom_formats/PCOK.yml index 68b24b0..bd6dcba 100644 --- a/custom_formats/PCOK.yml +++ b/custom_formats/PCOK.yml @@ -7,8 +7,13 @@ conditions: - name: PCOK Regex negate: false pattern: Peacock TV - required: true + required: false type: release_title +- name: PCOK Rename Regex + type: release_title + required: false + negate: false + pattern: Peacock TV Rename - name: WEB-DL negate: false required: true diff --git a/regex_patterns/Peacock TV Rename.yml b/regex_patterns/Peacock TV Rename.yml new file mode 100644 index 0000000..a9193e0 --- /dev/null +++ b/regex_patterns/Peacock TV Rename.yml @@ -0,0 +1,85 @@ +name: Peacock TV Rename +pattern: \[(PCOK)\b|\b(PCOK)\] +description: Peacock is an American over-the-top subscription streaming service owned + and operated by Peacock TV, LLC, a subsidiary of NBCUniversal Media Group. The service + primarily features series and film content from NBCUniversal studios and other third-party + content providers (such as WWE and Hallmark Channel). +tags: +- Streaming Service +- WEB-DL +tests: +- expected: true + id: 1 + input: The Day of the Jackal S01E05 1080p PCOK WEB-DL DDP5 1 H 264-STC + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: + end: 39 + start: 29 + matchedContent: 1080p PCOK + matchedGroups: [] + passes: true +- expected: true + id: 2 + input: Fight Night - The Million Dollar Heist (2024) S01E01 (2160p PCOK WEB-DL H265 + SDR DDP 5.1 English - HONE) + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: + end: 64 + start: 54 + matchedContent: 2160p PCOK + matchedGroups: [] + passes: true +- expected: true + id: 3 + input: Halloween Kills 2021 1080p Peacock WebDL H264 AC3 Will1869 + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: + end: 40 + start: 27 + matchedContent: Peacock WebDL + matchedGroups: [] + passes: true +- expected: false + id: 4 + input: Peacock.S01.1080p.AMZN.WEB-DL.DDP2.0.H.264-Cinefeel + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 5 + input: Peacock.S02.1080p.iP.WEB-DL.AAC2.0.H.264-RNG + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 6 + input: Banana Fish S01E16 Lo The Poor Peacock WEB h264-PLUTONiUM + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: true + id: 7 + input: Kingsman The Secret Service 2014 1080p PCOK WEB-DL DDP 5 1 H 264-PiRaTeS + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: + end: 43 + start: 33 + matchedContent: 1080p PCOK + matchedGroups: [] + passes: true +- expected: true + id: 8 + input: Kingsman.The.Secret.Service.2014.1080p.PCOK.WEB-DL.DDP.5.1.H.264-PiRaTeS + lastRun: '2025-03-25T16:16:33.336288' + matchSpan: + end: 43 + start: 33 + matchedContent: 1080p.PCOK + matchedGroups: [] + passes: true