From 8c73678370e9b7fa0fe8cb2e07096386a6cc1666 Mon Sep 17 00:00:00 2001 From: santiagosayshey Date: Fri, 13 Dec 2024 10:00:34 +1050 Subject: [PATCH] feat(Regex + Format): Add miscellaneous extra formats - Black and White - 3D - AV1 - Scene --- custom_formats/3D.yml | 12 ++++++++++ custom_formats/AV1.yml | 12 ++++++++++ custom_formats/B&W.yml | 12 ++++++++++ custom_formats/Scene.yml | 15 ++++++++++++ regex_patterns/3D.yml | 31 +++++++++++++++++++++++++ regex_patterns/AV1.yml | 27 ++++++++++++++++++++++ regex_patterns/B&W.yml | 50 ++++++++++++++++++++++++++++++++++++++++ regex_patterns/Scene.yml | 5 ++++ 8 files changed, 164 insertions(+) create mode 100644 custom_formats/3D.yml create mode 100644 custom_formats/AV1.yml create mode 100644 custom_formats/B&W.yml create mode 100644 custom_formats/Scene.yml create mode 100644 regex_patterns/3D.yml create mode 100644 regex_patterns/AV1.yml create mode 100644 regex_patterns/B&W.yml create mode 100644 regex_patterns/Scene.yml diff --git a/custom_formats/3D.yml b/custom_formats/3D.yml new file mode 100644 index 0000000..1fcf90f --- /dev/null +++ b/custom_formats/3D.yml @@ -0,0 +1,12 @@ +name: 3D +description: Matches the '3D' Regex Pattern +tags: +- Enhancement +- Unwanted +conditions: +- name: 3D + negate: false + pattern: 3D + required: true + type: release_title +tests: [] diff --git a/custom_formats/AV1.yml b/custom_formats/AV1.yml new file mode 100644 index 0000000..60d4213 --- /dev/null +++ b/custom_formats/AV1.yml @@ -0,0 +1,12 @@ +name: AV1 +description: Matches the 'AV1' Regex Pattern +tags: +- Codec +- Bleeding Edge +conditions: +- name: AV1 + negate: false + pattern: AV1 + required: true + type: release_title +tests: [] diff --git a/custom_formats/B&W.yml b/custom_formats/B&W.yml new file mode 100644 index 0000000..786ec79 --- /dev/null +++ b/custom_formats/B&W.yml @@ -0,0 +1,12 @@ +name: B&W +description: Matches the 'B&W' Regex Pattern +tags: +- Unwanted +- Colour Grade +conditions: +- name: B&W + negate: false + pattern: B&W + required: true + type: release_title +tests: [] diff --git a/custom_formats/Scene.yml b/custom_formats/Scene.yml new file mode 100644 index 0000000..205bcbb --- /dev/null +++ b/custom_formats/Scene.yml @@ -0,0 +1,15 @@ +name: Scene +description: Matches Scene regex patterns, negates any WEB-DLs. +tags: [] +conditions: +- name: Scene + type: release_title + required: true + negate: false + pattern: Scene +- name: WEB-DL + type: source + required: false + negate: true + source: web_dl +tests: [] diff --git a/regex_patterns/3D.yml b/regex_patterns/3D.yml new file mode 100644 index 0000000..3faeec9 --- /dev/null +++ b/regex_patterns/3D.yml @@ -0,0 +1,31 @@ +name: 3D +pattern: \b((bluray|bd)?3d|sbs|half[ .-]ou|half[ .-]sbs)\b +description: '' +tags: +- Enhancement +- Unwanted +tests: +- expected: true + id: 1 + input: Universal.Soldier.Day.of.Reckoning.2012.1080p.BluRay.3D.H-SBS.DTS.x264-BluRay3D + lastRun: '2024-12-13T06:50:15.135830' + matchSpan: + end: 55 + start: 53 + matchedContent: 3D + matchedGroups: + - 3D + - null + passes: true +- expected: true + id: 2 + input: Justin.And.The.Knights.Of.Valour.3D.2013.1080p.BluRay.Half-SBS.x264-BluRay3D + lastRun: '2024-12-13T06:50:15.135830' + matchSpan: + end: 35 + start: 33 + matchedContent: 3D + matchedGroups: + - 3D + - null + passes: true diff --git a/regex_patterns/AV1.yml b/regex_patterns/AV1.yml new file mode 100644 index 0000000..fe32b11 --- /dev/null +++ b/regex_patterns/AV1.yml @@ -0,0 +1,27 @@ +name: AV1 +pattern: \bAV1\b +description: AV1, or AOMedia Video 1, is a video coding format that compresses video + files and streams while maintaining high quality. +tags: +- Codec +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' + matchSpan: + end: 45 + start: 42 + matchedContent: AV1 + matchedGroups: [] + passes: true +- expected: true + id: 2 + input: Up.2009.2160p.Bluray.AC3.HDR.DV.AV1-TiZU.mkv + lastRun: '2024-12-13T07:04:08.442964' + matchSpan: + end: 35 + start: 32 + matchedContent: AV1 + matchedGroups: [] + passes: true diff --git a/regex_patterns/B&W.yml b/regex_patterns/B&W.yml new file mode 100644 index 0000000..3d652c4 --- /dev/null +++ b/regex_patterns/B&W.yml @@ -0,0 +1,50 @@ +name: B&W +pattern: (?i)\bblack\s*[.-]?\s*(?:and|&)\s*[.-]?\s*white\b +description: Black and White colour grading. +tags: +- Enhancement +- Unwanted +- Colour Grade +tests: +- expected: true + id: 1 + input: The Mist Black and White 2007 2160p USA UHD Blu-ray DV HDR HEVC TrueHD 7.1 + Atmos-BeyondHD + lastRun: '2024-12-13T07:08:12.829611' + matchSpan: + end: 24 + start: 9 + matchedContent: Black and White + matchedGroups: [] + passes: true +- expected: false + id: 2 + input: Black and White 2002 1080p Blu-ray AVC DTS-HD MA 5.1-CultFilms + lastRun: '2024-12-13T07:08:12.829611' + matchSpan: + end: 15 + start: 0 + matchedContent: Black and White + matchedGroups: [] + passes: false +- expected: false + id: 3 + input: 'Pokemon the Movie: Black and White-Victini and Reshiram Zekrom 2011 1080p + AUS BD50 DTS-HD MA 5.1 AVC-PHOENiX' + lastRun: '2024-12-13T07:08:12.829611' + matchSpan: + end: 34 + start: 19 + matchedContent: Black and White + matchedGroups: [] + passes: false +- expected: true + id: 4 + input: Madeo 2009 Black & White Version 1080p JPN Blu-ray AVC TrueHD 5.1-kyRLS + lastRun: '2024-12-13T07:08:12.829611' + matchSpan: + end: 24 + start: 11 + matchedContent: Black & White + matchedGroups: [] + passes: true diff --git a/regex_patterns/Scene.yml b/regex_patterns/Scene.yml new file mode 100644 index 0000000..bd8e819 --- /dev/null +++ b/regex_patterns/Scene.yml @@ -0,0 +1,5 @@ +name: Scene +pattern: (?<=^|[\s.-])SPARKS|DRONES|ROVERS|SPRINTER|GECKOS|SHORTBREHD|EDITH|FilmHD|POW4HD|HD4U|TENEIGHTY|ETHEL\b +description: Matches Scene Groups +tags: [] +tests: []