From 1de639de94179f01599ed04aadc6f7a057137e50 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Tue, 25 Aug 2026 01:55:03 +0000 Subject: [PATCH] Add Gyroscope to 1080/720p Tier 6 --- ops/285.add-gyroscope-to-1080-720p-tier-6.sql | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ops/285.add-gyroscope-to-1080-720p-tier-6.sql diff --git a/ops/285.add-gyroscope-to-1080-720p-tier-6.sql b/ops/285.add-gyroscope-to-1080-720p-tier-6.sql new file mode 100644 index 00000000..9bc9e606 --- /dev/null +++ b/ops/285.add-gyroscope-to-1080-720p-tier-6.sql @@ -0,0 +1,42 @@ +-- @operation: export +-- @entity: batch +-- @name: Add Gyroscope to 1080/720p Tier 6 +-- @exportedAt: 2026-08-25T01:55:01.934Z +-- @opIds: 13607, 13608, 13609, 13610, 13611 + +-- --- BEGIN op 13607 ( create regular_expression "Gyroscope" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Gyroscope', '(?<=^|[\s.-])MGs\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 ('Gyroscope', 'Bluray'); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Gyroscope', 'Release Group'); +-- --- END op 13607 + +-- --- BEGIN op 13608 ( update regular_expression "Gyroscope" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])Gyroscope\b' where "name" = 'Gyroscope' and "pattern" = '(?<=^|[\s.-])MGs\b'; +-- --- END op 13608 + +-- --- BEGIN op 13609 ( update custom_format "1080p Quality Tier 6" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Quality Tier 6', 'Gyroscope', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 6', 'Gyroscope', 'Gyroscope'); +-- --- END op 13609 + +-- --- BEGIN op 13610 ( update custom_format "1080p Quality Tier 6 (Efficient)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Quality Tier 6 (Efficient)', 'Gyroscope', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 6 (Efficient)', 'Gyroscope', 'Gyroscope'); +-- --- END op 13610 + +-- --- BEGIN op 13611 ( update custom_format "720p Quality Tier 6" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('720p Quality Tier 6', 'Gyroscope', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('720p Quality Tier 6', 'Gyroscope', 'Gyroscope'); +-- --- END op 13611