From baed3d3c39d502125dfb4ae399b817a4e86d6e0a Mon Sep 17 00:00:00 2001 From: Seraphys Date: Sat, 22 Aug 2026 15:55:24 +0000 Subject: [PATCH] Add O2STK to 1080/720p Quality Tier 5 --- ....add-o2stk-to-1080-720p-quality-tier-5.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ops/265.add-o2stk-to-1080-720p-quality-tier-5.sql diff --git a/ops/265.add-o2stk-to-1080-720p-quality-tier-5.sql b/ops/265.add-o2stk-to-1080-720p-quality-tier-5.sql new file mode 100644 index 00000000..f384a04e --- /dev/null +++ b/ops/265.add-o2stk-to-1080-720p-quality-tier-5.sql @@ -0,0 +1,42 @@ +-- @operation: export +-- @entity: batch +-- @name: Add O2STK to 1080/720p Quality Tier 5 +-- @exportedAt: 2026-08-22T15:55:23.007Z +-- @opIds: 13390, 13391, 13392, 13393, 13394 + +-- --- BEGIN op 13390 ( create regular_expression "O2STK" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('O2STK', '(?<=^|[\s.-])POH\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 ('O2STK', 'Bluray'); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('O2STK', 'Release Group'); +-- --- END op 13390 + +-- --- BEGIN op 13391 ( update regular_expression "O2STK" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])O2STK\b' where "name" = 'O2STK' and "pattern" = '(?<=^|[\s.-])POH\b'; +-- --- END op 13391 + +-- --- BEGIN op 13392 ( 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', 'O2STK', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 5', 'O2STK', 'O2STK'); +-- --- END op 13392 + +-- --- BEGIN op 13393 ( 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)', 'O2STK', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 5 (Efficient)', 'O2STK', 'O2STK'); +-- --- END op 13393 + +-- --- BEGIN op 13394 ( 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', 'O2STK', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('720p Quality Tier 5', 'O2STK', 'O2STK'); +-- --- END op 13394