Skip to content

Commit 21164b2

Browse files
committed
BAN jff and rbb
1 parent 7dbc10b commit 21164b2

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

ops/184.ban-jff-and-rbb.sql

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
-- @operation: export
2+
-- @entity: batch
3+
-- @name: BAN jff and rbb
4+
-- @exportedAt: 2026-06-25T19:04:20.721Z
5+
-- @opIds: 11336, 11337, 11338, 11339, 11340, 11341, 11342, 11343, 11344, 11345, 11346, 11347
6+
7+
-- --- BEGIN op 11336 ( create regular_expression "JFF" )
8+
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('JFF', '(?<=^|[\s.-])AJP69\b', NULL, NULL);
9+
10+
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
11+
12+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('JFF', 'Release Group');
13+
14+
insert into "tags" ("name") values ('WEB-DL') on conflict ("name") do nothing;
15+
16+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('JFF', 'WEB-DL');
17+
-- --- END op 11336
18+
19+
-- --- BEGIN op 11337 ( update regular_expression "JFF" )
20+
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])rbb\b' where "name" = 'JFF' and "pattern" = '(?<=^|[\s.-])AJP69\b';
21+
-- --- END op 11337
22+
23+
-- --- BEGIN op 11338 ( update regular_expression "rbb" )
24+
update "regular_expressions" set "name" = 'rbb' where "name" = 'JFF';
25+
-- --- END op 11338
26+
27+
-- --- BEGIN op 11339 ( create regular_expression "jff" )
28+
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('jff', '(?<=^|[\s.-])rbb\b', NULL, NULL);
29+
30+
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
31+
32+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('jff', 'Release Group');
33+
34+
insert into "tags" ("name") values ('WEB-DL') on conflict ("name") do nothing;
35+
36+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('jff', 'WEB-DL');
37+
-- --- END op 11339
38+
39+
-- --- BEGIN op 11340 ( update regular_expression "jff" )
40+
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])jff\b' where "name" = 'jff' and "pattern" = '(?<=^|[\s.-])rbb\b';
41+
-- --- END op 11340
42+
43+
-- --- BEGIN op 11341 ( update custom_format "Banned Groups" )
44+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
45+
VALUES ('Banned Groups', 'jff', 'release_group', 'all', 0, 0);
46+
47+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'jff', 'jff');
48+
-- --- END op 11341
49+
50+
-- --- BEGIN op 11342 ( update custom_format "Banned Groups" )
51+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
52+
VALUES ('Banned Groups', 'rbb', 'release_group', 'all', 0, 0);
53+
54+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'rbb', 'rbb');
55+
-- --- END op 11342
56+
57+
-- --- BEGIN op 11343 ( update custom_format "Banned Groups (Compact)" )
58+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
59+
VALUES ('Banned Groups (Compact)', 'jff', 'release_group', 'all', 0, 0);
60+
61+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Compact)', 'jff', 'jff');
62+
-- --- END op 11343
63+
64+
-- --- BEGIN op 11344 ( update custom_format "Banned Groups (Compact)" )
65+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
66+
VALUES ('Banned Groups (Compact)', 'rbb', 'release_group', 'all', 0, 0);
67+
68+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Compact)', 'rbb', 'jff');
69+
-- --- END op 11344
70+
71+
-- --- BEGIN op 11345 ( update custom_format "Banned Groups (Efficient)" )
72+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
73+
VALUES ('Banned Groups (Efficient)', 'jff', 'release_group', 'all', 0, 0);
74+
75+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Efficient)', 'jff', 'jff');
76+
-- --- END op 11345
77+
78+
-- --- BEGIN op 11346 ( update custom_format "Banned Groups (Efficient)" )
79+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
80+
VALUES ('Banned Groups (Efficient)', 'rbb', 'release_group', 'all', 0, 0);
81+
82+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Efficient)', 'rbb', 'rbb');
83+
-- --- END op 11346
84+
85+
-- --- BEGIN op 11347 ( update custom_format "Banned Groups (Compact)" )
86+
DELETE FROM condition_patterns WHERE custom_format_name = 'Banned Groups (Compact)' AND condition_name = 'rbb' AND regular_expression_name = 'jff';
87+
88+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Compact)', 'rbb', 'rbb');
89+
-- --- END op 11347

0 commit comments

Comments
 (0)