From c43c79410c03ea0811a403bb8c10b706c8a34506 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Sat, 30 May 2026 13:15:43 -0500 Subject: [PATCH] Ban MAMA --- ops/166.ban-mama.sql | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ops/166.ban-mama.sql diff --git a/ops/166.ban-mama.sql b/ops/166.ban-mama.sql new file mode 100644 index 00000000..4cfc3b09 --- /dev/null +++ b/ops/166.ban-mama.sql @@ -0,0 +1,42 @@ +-- @operation: export +-- @entity: batch +-- @name: Ban MAMA +-- @exportedAt: 2026-05-30T18:15:42.182Z +-- @opIds: 10840, 10841, 10842, 10843, 10844 + +-- --- BEGIN op 10840 ( create regular_expression "MAMA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('MAMA', '(?<=^|[\s.-])pmHD\b', NULL, NULL); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('MAMA', 'Release Group'); + +insert into "tags" ("name") values ('Remux') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('MAMA', 'Remux'); +-- --- END op 10840 + +-- --- BEGIN op 10841 ( update regular_expression "MAMA" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])MAMA\b' where "name" = 'MAMA' and "pattern" = '(?<=^|[\s.-])pmHD\b'; +-- --- END op 10841 + +-- --- BEGIN op 10842 ( update custom_format "Banned Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups', 'MAMA', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'MAMA', 'MAMA'); +-- --- END op 10842 + +-- --- BEGIN op 10843 ( update custom_format "Banned Groups (Compact)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups (Compact)', 'MAMA', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Compact)', 'MAMA', 'MAMA'); +-- --- END op 10843 + +-- --- BEGIN op 10844 ( update custom_format "Banned Groups (Efficient)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups (Efficient)', 'MAMA', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Efficient)', 'MAMA', 'MAMA'); +-- --- END op 10844