Skip to content

Commit c334453

Browse files
committed
Cleanup Regex & Tags
1 parent bbbdd25 commit c334453

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

ops/133.cleanup-regex-tags.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: Cleanup Regex & Tags
4+
-- @exportedAt: 2026-05-07T18:23:49.157Z
5+
-- @opIds: 8685, 8686, 8687, 8688, 8689, 8690, 8691, 8692, 8693, 8694, 8695, 8696, 8697, 8698
6+
7+
-- --- BEGIN op 8685 ( update regular_expression "German DL" )
8+
DELETE FROM regular_expression_tags WHERE regular_expression_name = 'German DL' AND tag_name = 'Release Group';
9+
10+
DELETE FROM regular_expression_tags WHERE regular_expression_name = 'German DL' AND tag_name = 'WEB-DL';
11+
12+
insert into "tags" ("name") values ('Language') on conflict ("name") do nothing;
13+
14+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('German DL', 'Language');
15+
-- --- END op 8685
16+
17+
-- --- BEGIN op 8686 ( delete regular_expression "480p" )
18+
delete from "regular_expressions" where "name" = '480p';
19+
-- --- END op 8686
20+
21+
-- --- BEGIN op 8687 ( update regular_expression "576p" )
22+
insert into "tags" ("name") values ('Resolution') on conflict ("name") do nothing;
23+
24+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('576p', 'Resolution');
25+
-- --- END op 8687
26+
27+
-- --- BEGIN op 8688 ( delete regular_expression "Bracketed Year" )
28+
delete from "regular_expressions" where "name" = 'Bracketed Year';
29+
-- --- END op 8688
30+
31+
-- --- BEGIN op 8689 ( update regular_expression "HDTV" )
32+
insert into "tags" ("name") values ('Source') on conflict ("name") do nothing;
33+
34+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('HDTV', 'Source');
35+
-- --- END op 8689
36+
37+
-- --- BEGIN op 8690 ( update regular_expression "Nordic" )
38+
insert into "tags" ("name") values ('Language') on conflict ("name") do nothing;
39+
40+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Nordic', 'Language');
41+
-- --- END op 8690
42+
43+
-- --- BEGIN op 8691 ( update regular_expression "Scene" )
44+
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
45+
46+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Scene', 'Release Group');
47+
-- --- END op 8691
48+
49+
-- --- BEGIN op 8692 ( update regular_expression "WEB-DL" )
50+
insert into "tags" ("name") values ('Source') on conflict ("name") do nothing;
51+
52+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('WEB-DL', 'Source');
53+
-- --- END op 8692
54+
55+
-- --- BEGIN op 8693 ( update regular_expression "Dual Audio" )
56+
insert into "tags" ("name") values ('Language') on conflict ("name") do nothing;
57+
58+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Dual Audio', 'Language');
59+
-- --- END op 8693
60+
61+
-- --- BEGIN op 8694 ( update regular_expression "Golden Popcorn Negation" )
62+
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
63+
64+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Golden Popcorn Negation', 'Release Group');
65+
-- --- END op 8694
66+
67+
-- --- BEGIN op 8695 ( update regular_expression "UHD Bluray" )
68+
insert into "tags" ("name") values ('UHD Bluray') on conflict ("name") do nothing;
69+
70+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('UHD Bluray', 'UHD Bluray');
71+
-- --- END op 8695
72+
73+
-- --- BEGIN op 8696 ( update regular_expression "UHD Bluray (Efficient)" )
74+
insert into "tags" ("name") values ('UHD Bluray') on conflict ("name") do nothing;
75+
76+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('UHD Bluray (Efficient)', 'UHD Bluray');
77+
-- --- END op 8696
78+
79+
-- --- BEGIN op 8697 ( update regular_expression "UHD Bluray Release Groups" )
80+
insert into "tags" ("name") values ('UHD Bluray') on conflict ("name") do nothing;
81+
82+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('UHD Bluray Release Groups', 'UHD Bluray');
83+
-- --- END op 8697
84+
85+
-- --- BEGIN op 8698 ( update regular_expression "UHD WEBRip Release Groups" )
86+
insert into "tags" ("name") values ('UHD Bluray') on conflict ("name") do nothing;
87+
88+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('UHD WEBRip Release Groups', 'UHD Bluray');
89+
-- --- END op 8698

0 commit comments

Comments
 (0)