From 56cf03011bd50bec30074497456ed5fb352aeebf Mon Sep 17 00:00:00 2001 From: Seraphys Date: Tue, 15 Apr 2025 14:52:49 -0500 Subject: [PATCH] tweak(regex): OCD Fix --- regex_patterns/AV1.yml | 12 +++++++----- regex_patterns/Hulu.yml | 2 +- regex_patterns/Netflix.yml | 2 +- regex_patterns/Paramount+.yml | 2 +- regex_patterns/SDR.yml | 12 +++++++----- regex_patterns/VP9.yml | 26 ++++++++++++++++++++++++-- 6 files changed, 41 insertions(+), 15 deletions(-) diff --git a/regex_patterns/AV1.yml b/regex_patterns/AV1.yml index fe32b11..dc61ce9 100644 --- a/regex_patterns/AV1.yml +++ b/regex_patterns/AV1.yml @@ -1,5 +1,5 @@ name: AV1 -pattern: \bAV1\b +pattern: \b(AV1)\b description: AV1, or AOMedia Video 1, is a video coding format that compresses video files and streams while maintaining high quality. tags: @@ -8,20 +8,22 @@ tests: - expected: true id: 1 input: Arcane S01 2160p UHD BluRay DD 5.1 DV HDR AV1-TiZU - lastRun: '2024-12-13T07:04:08.442964' + lastRun: '2025-04-15T14:50:05.552676' matchSpan: end: 45 start: 42 matchedContent: AV1 - matchedGroups: [] + matchedGroups: + - AV1 passes: true - expected: true id: 2 input: Up.2009.2160p.Bluray.AC3.HDR.DV.AV1-TiZU.mkv - lastRun: '2024-12-13T07:04:08.442964' + lastRun: '2025-04-15T14:50:05.552676' matchSpan: end: 35 start: 32 matchedContent: AV1 - matchedGroups: [] + matchedGroups: + - AV1 passes: true diff --git a/regex_patterns/Hulu.yml b/regex_patterns/Hulu.yml index 14e05be..3a998ac 100644 --- a/regex_patterns/Hulu.yml +++ b/regex_patterns/Hulu.yml @@ -1,5 +1,5 @@ name: Hulu -pattern: \b(hulu)\b +pattern: \b(Hulu)\b description: Hulu, an American subscription streaming service owned by Disney, offers recent TV episodes, full seasons of shows, original content, and live TV channels. As of December 2023, Hulu content is being integrated into Disney+, making its library diff --git a/regex_patterns/Netflix.yml b/regex_patterns/Netflix.yml index e9e632a..91c63cb 100644 --- a/regex_patterns/Netflix.yml +++ b/regex_patterns/Netflix.yml @@ -1,5 +1,5 @@ name: Netflix -pattern: \b(nf|netflix)\b +pattern: \b(NF|Netflix)\b description: Netflix is an American subscription video on-demand over-the-top streaming service. The service primarily distributes original and acquired films and television shows from various genres, and it is available internationally in multiple languages. diff --git a/regex_patterns/Paramount+.yml b/regex_patterns/Paramount+.yml index 425fed9..9d021bd 100644 --- a/regex_patterns/Paramount+.yml +++ b/regex_patterns/Paramount+.yml @@ -1,5 +1,5 @@ name: Paramount+ -pattern: \b(pmtp|Paramount Plus)\b +pattern: \b(PMTP|Paramount Plus)\b description: 'Paramount+ is an American subscription video on-demand over-the-top streaming service owned that offers content primarily from the libraries of CBS Media Ventures, CBS Studios, Paramount Media Networks and Paramount Pictures, while diff --git a/regex_patterns/SDR.yml b/regex_patterns/SDR.yml index d90b3b1..1c4dcae 100644 --- a/regex_patterns/SDR.yml +++ b/regex_patterns/SDR.yml @@ -1,5 +1,5 @@ name: SDR -pattern: \bSDR\b +pattern: \b(SDR)\b description: 'Explicitly matches labelled Standard Dynamic Range, i.e. "SDR" ' tags: - HDR @@ -7,21 +7,23 @@ tests: - expected: true id: 1 input: Yojimbo.1961.REPACK.2160p.UHD.Blu-ray.Remux.SDR.HEVC.FLAC.1.0-CiNEPHiLES.mkv - lastRun: '2025-01-11T22:58:34.197378' + lastRun: '2025-04-15T14:47:06.326256' matchSpan: end: 47 start: 44 matchedContent: SDR - matchedGroups: [] + matchedGroups: + - SDR passes: true - expected: true id: 2 input: "For a Few Dollars More aka Per qualche dollaro in pi\xF9 1965 UHD BluRay\ \ 2160p DTS-HD MA 5.1 SDR HEVC REMUX-FraMeSToR" - lastRun: '2025-01-11T22:58:34.197378' + lastRun: '2025-04-15T14:47:06.326256' matchSpan: end: 93 start: 90 matchedContent: SDR - matchedGroups: [] + matchedGroups: + - SDR passes: true diff --git a/regex_patterns/VP9.yml b/regex_patterns/VP9.yml index 6e7349b..99a420a 100644 --- a/regex_patterns/VP9.yml +++ b/regex_patterns/VP9.yml @@ -1,6 +1,28 @@ name: VP9 -pattern: \bVP9\b +pattern: \b(VP9)\b description: VP9 is an open and royalty-free video coding format developed by Google tags: - Codec -tests: [] +tests: +- expected: true + id: 1 + input: Kedi 2016 REPACK 2160p WEB-DL DD+ 5.1 VP9-WiLDCAT + lastRun: '2025-04-15T14:48:20.729485' + matchSpan: + end: 41 + start: 38 + matchedContent: VP9 + matchedGroups: + - VP9 + passes: true +- expected: true + id: 2 + input: Kedi.2016.Repack.2160p.WEB-DL.DDP.5.1.VP9-WiLDCAT.mkv + lastRun: '2025-04-15T14:48:20.729485' + matchSpan: + end: 41 + start: 38 + matchedContent: VP9 + matchedGroups: + - VP9 + passes: true