From 99543e5353a78d1b76a9cce5eb8674df289540d0 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Thu, 15 Oct 2026 00:09:11 +0000 Subject: [PATCH] BAN SPx --- ops/368.ban-spx.sql | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ops/368.ban-spx.sql diff --git a/ops/368.ban-spx.sql b/ops/368.ban-spx.sql new file mode 100644 index 00000000..0b660b52 --- /dev/null +++ b/ops/368.ban-spx.sql @@ -0,0 +1,28 @@ +-- @operation: export +-- @entity: batch +-- @name: BAN SPx +-- @exportedAt: 2026-10-15T00:09:09.954Z +-- @opIds: 14740, 14741, 14742 + +-- --- BEGIN op 14740 ( create regular_expression "SPx" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('SPx', '(?<=^|[\s.-])0BSiDiAN\b', NULL, NULL); + +insert into "tags" ("name") values ('Bluray') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('SPx', 'Bluray'); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('SPx', 'Release Group'); +-- --- END op 14740 + +-- --- BEGIN op 14741 ( update regular_expression "SPx" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])SPx\b' where "name" = 'SPx' and "pattern" = '(?<=^|[\s.-])0BSiDiAN\b'; +-- --- END op 14741 + +-- --- BEGIN op 14742 ( update custom_format "Banned Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups', 'SPx', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'SPx', 'SPx'); +-- --- END op 14742