From 7c163316223edd0fb7c29e3f01ff6cddac573bdb Mon Sep 17 00:00:00 2001 From: Seraphys Date: Mon, 17 Aug 2026 02:32:02 +0000 Subject: [PATCH] Add OmertaHD to 1080/720p Quality Tier 5 --- ...d-omertahd-to-1080-720p-quality-tier-5.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ops/226.add-omertahd-to-1080-720p-quality-tier-5.sql diff --git a/ops/226.add-omertahd-to-1080-720p-quality-tier-5.sql b/ops/226.add-omertahd-to-1080-720p-quality-tier-5.sql new file mode 100644 index 00000000..d565b805 --- /dev/null +++ b/ops/226.add-omertahd-to-1080-720p-quality-tier-5.sql @@ -0,0 +1,42 @@ +-- @operation: export +-- @entity: batch +-- @name: Add OmertaHD to 1080/720p Quality Tier 5 +-- @exportedAt: 2026-08-17T02:32:00.637Z +-- @opIds: 13159, 13160, 13161, 13162, 13163 + +-- --- BEGIN op 13159 ( create regular_expression "OmertaHD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('OmertaHD', '(?<=^|[\s.-])SuBHD\b', 'Matches "BakedFEL" when preceded by whitespace, a hyphen or dot', NULL); + +insert into "tags" ("name") values ('Bluray') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('OmertaHD', 'Bluray'); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('OmertaHD', 'Release Group'); +-- --- END op 13159 + +-- --- BEGIN op 13160 ( update regular_expression "OmertaHD" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])OmertaHD\b' where "name" = 'OmertaHD' and "pattern" = '(?<=^|[\s.-])SuBHD\b'; +-- --- END op 13160 + +-- --- BEGIN op 13161 ( update custom_format "720p Quality Tier 5" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('720p Quality Tier 5', 'OmertaHD', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('720p Quality Tier 5', 'OmertaHD', 'OmertaHD'); +-- --- END op 13161 + +-- --- BEGIN op 13162 ( update custom_format "1080p Quality Tier 5" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Quality Tier 5', 'OmertaHD', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 5', 'OmertaHD', 'OmertaHD'); +-- --- END op 13162 + +-- --- BEGIN op 13163 ( update custom_format "1080p Quality Tier 5 (Efficient)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Quality Tier 5 (Efficient)', 'OmertaHD', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 5 (Efficient)', 'OmertaHD', 'OmertaHD'); +-- --- END op 13163