From 8f53a8708b98434d67c6c2f34d1f0593965a1107 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Wed, 9 Jul 2025 19:20:26 -0500 Subject: [PATCH] tweak(format): Simply h264 regex and Create 1080 WEB-DL h265 --- custom_formats/1080p WEB-DL (h265).yml | 21 ++++++++ regex_patterns/h264.yml | 72 ++++++++++++-------------- 2 files changed, 54 insertions(+), 39 deletions(-) create mode 100644 custom_formats/1080p WEB-DL (h265).yml diff --git a/custom_formats/1080p WEB-DL (h265).yml b/custom_formats/1080p WEB-DL (h265).yml new file mode 100644 index 0000000..65614ac --- /dev/null +++ b/custom_formats/1080p WEB-DL (h265).yml @@ -0,0 +1,21 @@ +name: 1080p WEB-DL (h265) +description: Matches 1080p WEB-DLs. +tags: +- Resolution +conditions: +- name: 1080p + negate: false + required: true + resolution: 1080p + type: resolution +- name: WEB-DL + negate: false + required: true + source: web_dl + type: source +- name: h265 + negate: false + pattern: h265 + required: true + type: release_title +tests: [] diff --git a/regex_patterns/h264.yml b/regex_patterns/h264.yml index 094f2a4..455ca8e 100644 --- a/regex_patterns/h264.yml +++ b/regex_patterns/h264.yml @@ -1,38 +1,30 @@ name: h264 -pattern: ^(?!.*(?i:remux)).*([h](\.?264)) +pattern: (?i)h\s*\.?\s*264 description: 'An open source encoder that produces H.264 videos. ' tags: - Codec tests: -- expected: true +- expected: false id: 1 input: Dan Da Dan AKA Dandadan S01E10 1080p CR WEB-DL AAC 2.0 x264-SubsPlease - lastRun: '2025-07-08T18:21:05.961372' - matchSpan: - end: 59 - start: 0 - matchedContent: Dan Da Dan AKA Dandadan S01E10 1080p CR WEB-DL AAC 2.0 x264 - matchedGroups: - - x264 - - '264' + lastRun: '2025-07-09T19:19:57.966625' + matchSpan: null + matchedContent: null + matchedGroups: [] passes: true -- expected: true +- expected: false id: 2 input: Life of Pi 2012 1080p BluRay x264-SPARKS - lastRun: '2025-07-08T18:21:05.961372' - matchSpan: - end: 33 - start: 0 - matchedContent: Life of Pi 2012 1080p BluRay x264 - matchedGroups: - - x264 - - '264' + lastRun: '2025-07-09T19:19:57.966625' + matchSpan: null + matchedContent: null + matchedGroups: [] passes: true - expected: false id: 3 input: Scrubs (2001) S04 REPACK (1080p AIUS DVDRip x265 10bit AC3 5 1 English - JBENT)[TAoE] - lastRun: '2025-07-08T18:21:05.961372' + lastRun: '2025-07-09T19:19:57.966625' matchSpan: null matchedContent: null matchedGroups: [] @@ -40,32 +32,34 @@ tests: - expected: false id: 4 input: Wallander UK S01-S04 DVDRip XviD BDRip x264-Scene (2008-2016) - lastRun: '2025-07-08T18:21:05.961372' - matchSpan: - end: 43 - start: 0 - matchedContent: Wallander UK S01-S04 DVDRip XviD BDRip x264 - matchedGroups: - - x264 - - '264' - passes: false + lastRun: '2025-07-09T19:19:57.966625' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true - expected: false id: 5 input: Rugrats S05 480p DVDRip Opus 2.0 AV1-Jenkins - lastRun: '2025-07-08T18:21:05.961372' + lastRun: '2025-07-09T19:19:57.966625' + matchSpan: null + matchedContent: null + matchedGroups: [] + passes: true +- expected: false + id: 6 + input: _Summer S00 JAPANESE 480p DVDRip DD 2.0 x264-Tsundere + lastRun: '2025-07-09T19:19:57.966625' matchSpan: null matchedContent: null matchedGroups: [] passes: true - expected: true - id: 6 - input: _Summer S00 JAPANESE 480p DVDRip DD 2.0 x264-Tsundere - lastRun: '2025-07-08T18:21:05.961372' + id: 7 + input: Sinners (2025) (1080p MA WEB-DL H264 SDR DDP Atmos 5.1 English - PiracyIsASin) + lastRun: '2025-07-09T19:19:57.966625' matchSpan: - end: 44 - start: 0 - matchedContent: _Summer S00 JAPANESE 480p DVDRip DD 2.0 x264 - matchedGroups: - - x264 - - '264' + end: 36 + start: 32 + matchedContent: H264 + matchedGroups: [] passes: true