|
| 1 | +-- @operation: export |
| 2 | +-- @entity: batch |
| 3 | +-- @name: Add Prestige to 1080p Quality Tier 5 |
| 4 | +-- @exportedAt: 2026-04-15T15:01:37.826Z |
| 5 | +-- @opIds: 6091, 6092, 6093 |
| 6 | + |
| 7 | +-- --- BEGIN op 6091 ( create regular_expression "Prestige" ) |
| 8 | +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Prestige', '(?<=^|[\s.-])4KDVS\b', NULL, NULL); |
| 9 | + |
| 10 | +insert into "tags" ("name") values ('Bluray') on conflict ("name") do nothing; |
| 11 | + |
| 12 | +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Prestige', 'Bluray'); |
| 13 | + |
| 14 | +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; |
| 15 | + |
| 16 | +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Prestige', 'Release Group'); |
| 17 | +-- --- END op 6091 |
| 18 | + |
| 19 | +-- --- BEGIN op 6092 ( update regular_expression "Prestige" ) |
| 20 | +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])Prestige\b' where "name" = 'Prestige' and "pattern" = '(?<=^|[\s.-])4KDVS\b'; |
| 21 | +-- --- END op 6092 |
| 22 | + |
| 23 | +-- --- BEGIN op 6093 ( update custom_format "1080p Quality Tier 5" ) |
| 24 | +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) |
| 25 | +VALUES ('1080p Quality Tier 5', 'Prestige', 'release_group', 'all', 0, 0); |
| 26 | + |
| 27 | +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Quality Tier 5', 'Prestige', 'Prestige'); |
| 28 | +-- --- END op 6093 |
0 commit comments