From e091b85e496188d574cc7032ff9e5a4af998d7eb Mon Sep 17 00:00:00 2001 From: Seraphys Date: Thu, 2 Jul 2026 18:08:47 +0000 Subject: [PATCH] Ban NaNi --- ops/195.ban-nani.sql | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ops/195.ban-nani.sql diff --git a/ops/195.ban-nani.sql b/ops/195.ban-nani.sql new file mode 100644 index 00000000..8c74e922 --- /dev/null +++ b/ops/195.ban-nani.sql @@ -0,0 +1,32 @@ +-- @operation: export +-- @entity: batch +-- @name: Ban NaNi +-- @exportedAt: 2026-07-02T18:08:46.001Z +-- @opIds: 11651, 11652, 11653, 11654 + +-- --- BEGIN op 11651 ( create regular_expression "NaNi" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('NaNi', '(?<=^|[\s.-])3L\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 ('NaNi', 'Release Group'); + +insert into "tags" ("name") values ('Remux') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('NaNi', 'Remux'); +-- --- END op 11651 + +-- --- BEGIN op 11652 ( update regular_expression "NaNi" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])NaNi\b' where "name" = 'NaNi' and "pattern" = '(?<=^|[\s.-])3L\b'; +-- --- END op 11652 + +-- --- BEGIN op 11653 ( update regular_expression "NaNi" ) +update "regular_expressions" set "description" = 'Banned for DCP Remux. Compatibility Issues' where "name" = 'NaNi' and "description" is null; +-- --- END op 11653 + +-- --- BEGIN op 11654 ( update custom_format "Banned Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups', 'NaNi', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'NaNi', 'NaNi'); +-- --- END op 11654