Files
trash/ops/84.update-lq-release-title.sql
T
2026-08-28 20:31:01 +00:00

21 lines
1.0 KiB
SQL

-- @operation: export
-- @entity: batch
-- @name: Update LQ (Release Title)
-- @exportedAt: 2026-08-28T20:31:00.450Z
-- @opIds: 13989, 13992, 13995
-- --- BEGIN op 13989 ( create regular_expression "UnKn0wn (NoRemux)" )
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('UnKn0wn (NoRemux)', '^(4FR)$', NULL, NULL);
-- --- END op 13989
-- --- BEGIN op 13992 ( update regular_expression "UnKn0wn (NoRemux)" )
update "regular_expressions" set "pattern" = '(?<!\b(remux).*?)\b(unkn0wn)\b' where "name" = 'UnKn0wn (NoRemux)' and "pattern" = '^(4FR)$';
-- --- END op 13992
-- --- BEGIN op 13995 ( update custom_format "LQ (Release Title)" )
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
VALUES ('LQ (Release Title)', 'UnKn0wn (NoRemux)', 'release_title', 'radarr', 0, 0);
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('LQ (Release Title)', 'UnKn0wn (NoRemux)', 'UnKn0wn (NoRemux)');
-- --- END op 13995