From 121b0705ae9b85d24ef46649915b567b2d20dc27 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Wed, 11 Feb 2026 12:21:01 -0600 Subject: [PATCH] Fix RARBG --- ops/44.fix-rarbg.sql | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 ops/44.fix-rarbg.sql diff --git a/ops/44.fix-rarbg.sql b/ops/44.fix-rarbg.sql new file mode 100644 index 00000000..5361b882 --- /dev/null +++ b/ops/44.fix-rarbg.sql @@ -0,0 +1,51 @@ +-- @operation: export +-- @entity: batch +-- @name: Fix RARBG +-- @exportedAt: 2026-02-11T18:21:00.406Z +-- @opIds: 46, 47, 48, 49, 50, 51, 52 + +-- --- BEGIN op 46 ( update regular_expression "RARBG" ) +update "regular_expressions" set "name" = 'RARBG', "pattern" = '(?<=^|[\s.-])RARBG\b' where "name" = 'RARGB' and "pattern" = '(?<=^|[\s.-])RARGB\b'; +-- --- END op 46 + +-- --- BEGIN op 47 ( update custom_format "Banned Groups" ) +update "condition_patterns" set "regular_expression_name" = 'RARBG' where "custom_format_name" = 'Banned Groups' and "condition_name" = 'RARGB' and "regular_expression_name" = 'RARGB'; +-- --- END op 47 + +-- --- BEGIN op 48 ( update custom_format "Banned Groups (Efficient)" ) +update "condition_patterns" set "regular_expression_name" = 'RARBG' where "custom_format_name" = 'Banned Groups (Efficient)' and "condition_name" = 'RARGB' and "regular_expression_name" = 'RARGB'; +-- --- END op 48 + +-- --- BEGIN op 49 ( update custom_format "Banned Groups" ) +DELETE FROM custom_format_conditions + WHERE custom_format_name = 'Banned Groups' + AND name = 'RARGB' + AND type = 'release_group' + AND arr_type = 'all' + AND negate = 0 + AND required = 0; +-- --- END op 49 + +-- --- BEGIN op 50 ( update custom_format "Banned Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups', 'RARBG', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'RARBG', 'RARBG'); +-- --- END op 50 + +-- --- BEGIN op 51 ( update custom_format "Banned Groups (Efficient)" ) +DELETE FROM custom_format_conditions + WHERE custom_format_name = 'Banned Groups (Efficient)' + AND name = 'RARGB' + AND type = 'release_group' + AND arr_type = 'all' + AND negate = 0 + AND required = 0; +-- --- END op 51 + +-- --- BEGIN op 52 ( update custom_format "Banned Groups (Efficient)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Banned Groups (Efficient)', 'RARBG', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Efficient)', 'RARBG', 'RARBG'); +-- --- END op 52