Skip to content

Commit c896766

Browse files
committed
Add Dubbed Regex for Future Use
1 parent e091b85 commit c896766

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
-- @operation: export
2+
-- @entity: batch
3+
-- @name: Add Dubbed Regex for Future Use
4+
-- @exportedAt: 2026-07-03T00:56:01.352Z
5+
-- @opIds: 11656, 11657, 11658, 11659, 11660, 11661, 11662, 11663, 11664, 11665, 11666, 11667, 11668, 11669, 11670, 11671, 11672
6+
7+
-- --- BEGIN op 11656 ( create regular_expression "Movie DUBBED" )
8+
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Movie DUBBED', '(?i)(?<=\b[12]\d{3}\b).*(\b|\.)\b(Extras?|Bonus|Extended[ ._-]Clip|Special Feature[s]?)\b', 'Extras, Special Features, Featurettes, etc', NULL);
9+
10+
insert into "tags" ("name") values ('Banned') on conflict ("name") do nothing;
11+
12+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('Movie DUBBED', 'Banned');
13+
-- --- END op 11656
14+
15+
-- --- BEGIN op 11657 ( create regular_expression "TV DUBBED" )
16+
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TV DUBBED', '(?<=\bS\d+\b).*\b(Extras|Bonus|Extended[ ._-]Clip)\b', 'Extras, Special Features, Featurettes, etc', NULL);
17+
18+
insert into "tags" ("name") values ('Banned') on conflict ("name") do nothing;
19+
20+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('TV DUBBED', 'Banned');
21+
-- --- END op 11657
22+
23+
-- --- BEGIN op 11658 ( update regular_expression "Movie DUBBED" )
24+
update "regular_expressions" set "pattern" = '(?i)(?<=\b[12]\d{3}\b).*(\b|\.)\bDUB(BED)?\b' where "name" = 'Movie DUBBED' and "pattern" = '(?i)(?<=\b[12]\d{3}\b).*(\b|\.)\b(Extras?|Bonus|Extended[ ._-]Clip|Special Feature[s]?)\b';
25+
-- --- END op 11658
26+
27+
-- --- BEGIN op 11659 ( update regular_expression "TV DUBBED" )
28+
update "regular_expressions" set "pattern" = '(?<=\bS\d+\b).*\bDUB(BED)?\b' where "name" = 'TV DUBBED' and "pattern" = '(?<=\bS\d+\b).*\b(Extras|Bonus|Extended[ ._-]Clip)\b';
29+
-- --- END op 11659
30+
31+
-- --- BEGIN op 11660 ( update regular_expression "Movie DUBBED" )
32+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*(\b|\.)\bDUB(BED)?\b' where "name" = 'Movie DUBBED' and "pattern" = '(?i)(?<=\b[12]\d{3}\b).*(\b|\.)\bDUB(BED)?\b';
33+
-- --- END op 11660
34+
35+
-- --- BEGIN op 11661 ( update regular_expression "Movie Extras" )
36+
update "regular_expressions" set "pattern" = '(?<=\b[12]\d{3}\b).*(\b|\.)\b(Extras?|Bonus|Extended[ ._-]Clip|Special Feature[s]?)\b' where "name" = 'Movie Extras' and "pattern" = '(?i)(?<=\b[12]\d{3}\b).*(\b|\.)\b(Extras?|Bonus|Extended[ ._-]Clip|Special Feature[s]?)\b';
37+
-- --- END op 11661
38+
39+
-- --- BEGIN op 11662 ( update regular_expression "TV DUBBED" )
40+
update "regular_expressions" set "pattern" = '(?<=\bS\d+(E\d+)?\b).*\bDUB(BED)?\b' where "name" = 'TV DUBBED' and "pattern" = '(?<=\bS\d+\b).*\bDUB(BED)?\b';
41+
-- --- END op 11662
42+
43+
-- --- BEGIN op 11663 ( create custom_format "DUBBED" )
44+
insert into "custom_formats" ("name", "description") values ('DUBBED', '');
45+
-- --- END op 11663
46+
47+
-- --- BEGIN op 11664 ( update custom_format "DUBBED" )
48+
update "custom_formats" set "description" = 'Matches the ''Extras'' Regex Pattern' where "name" = 'DUBBED' and "description" = '';
49+
-- --- END op 11664
50+
51+
-- --- BEGIN op 11665 ( update custom_format "DUBBED" )
52+
insert into "tags" ("name") values ('Banned') on conflict ("name") do nothing;
53+
54+
insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('DUBBED', 'Banned');
55+
56+
insert into "tags" ("name") values ('Enhancement') on conflict ("name") do nothing;
57+
58+
insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('DUBBED', 'Enhancement');
59+
-- --- END op 11665
60+
61+
-- --- BEGIN op 11666 ( update custom_format "DUBBED" )
62+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
63+
VALUES ('DUBBED', 'Movie Extras', 'release_title', 'radarr', 0, 1);
64+
65+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('DUBBED', 'Movie Extras', 'Movie Extras');
66+
-- --- END op 11666
67+
68+
-- --- BEGIN op 11667 ( update custom_format "DUBBED" )
69+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
70+
VALUES ('DUBBED', 'TV Extras', 'release_title', 'sonarr', 0, 1);
71+
72+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('DUBBED', 'TV Extras', 'TV Extras');
73+
-- --- END op 11667
74+
75+
-- --- BEGIN op 11668 ( update custom_format "DUBBED" )
76+
update "custom_formats" set "description" = 'Matches the ''DUBBED'' Regex Pattern' where "name" = 'DUBBED' and "description" = 'Matches the ''Extras'' Regex Pattern';
77+
-- --- END op 11668
78+
79+
-- --- BEGIN op 11669 ( update custom_format "DUBBED" )
80+
DELETE FROM custom_format_conditions
81+
WHERE custom_format_name = 'DUBBED'
82+
AND name = 'Movie Extras'
83+
AND type = 'release_title'
84+
AND arr_type = 'radarr'
85+
AND negate = 0
86+
AND required = 1;
87+
-- --- END op 11669
88+
89+
-- --- BEGIN op 11670 ( update custom_format "DUBBED" )
90+
DELETE FROM custom_format_conditions
91+
WHERE custom_format_name = 'DUBBED'
92+
AND name = 'TV Extras'
93+
AND type = 'release_title'
94+
AND arr_type = 'sonarr'
95+
AND negate = 0
96+
AND required = 1;
97+
-- --- END op 11670
98+
99+
-- --- BEGIN op 11671 ( update custom_format "DUBBED" )
100+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
101+
VALUES ('DUBBED', 'Movie DUBBED', 'release_title', 'radarr', 0, 1);
102+
103+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('DUBBED', 'Movie DUBBED', 'Movie DUBBED');
104+
-- --- END op 11671
105+
106+
-- --- BEGIN op 11672 ( update custom_format "DUBBED" )
107+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
108+
VALUES ('DUBBED', 'TV DUBBED', 'release_title', 'sonarr', 0, 1);
109+
110+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('DUBBED', 'TV DUBBED', 'TV DUBBED');
111+
-- --- END op 11672

0 commit comments

Comments
 (0)