From c0cdc5212e61f1e16cc4d0a4642ce12eeba1da61 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Tue, 17 Mar 2026 22:20:15 -0500 Subject: [PATCH] Prevent Yogi Double Matching --- ops/98.prevent-yogi-double-matching.sql | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ops/98.prevent-yogi-double-matching.sql diff --git a/ops/98.prevent-yogi-double-matching.sql b/ops/98.prevent-yogi-double-matching.sql new file mode 100644 index 00000000..3353e23d --- /dev/null +++ b/ops/98.prevent-yogi-double-matching.sql @@ -0,0 +1,47 @@ +-- @operation: export +-- @entity: batch +-- @name: Prevent Yogi Double Matching +-- @exportedAt: 2026-03-18T03:20:13.732Z +-- @opIds: 3011, 3012, 3013, 3014, 3015, 3016 + +-- --- BEGIN op 3011 ( update custom_format "1080p Efficient Movie Bluray Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Efficient Movie Bluray Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Efficient Movie Bluray Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3011 + +-- --- BEGIN op 3012 ( update custom_format "1080p Efficient Movie WEB Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Efficient Movie WEB Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Efficient Movie WEB Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3012 + +-- --- BEGIN op 3013 ( update custom_format "1080p Efficient TV Bluray Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Efficient TV Bluray Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Efficient TV Bluray Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3013 + +-- --- BEGIN op 3014 ( update custom_format "1080p Efficient TV WEB Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('1080p Efficient TV WEB Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Efficient TV WEB Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3014 + +-- --- BEGIN op 3015 ( update custom_format "2160p Efficient TV Bluray Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('2160p Efficient TV Bluray Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p Efficient TV Bluray Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3015 + +-- --- BEGIN op 3016 ( update custom_format "2160p Efficient TV WEB Tier 1" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('2160p Efficient TV WEB Tier 1', 'Not HONE', 'release_title', 'all', 1, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p Efficient TV WEB Tier 1', 'Not HONE', 'HONE'); +-- --- END op 3016