Skip to content

Commit b633f56

Browse files
committed
Rename SDR CF & Add in 2160p iTunes Enhancement to 2160p Balanced for Testing
1 parent c896766 commit b633f56

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
-- @operation: export
2+
-- @entity: batch
3+
-- @name: Rename SDR CF & Add in 2160p iTunes Enhancement to 2160p Balanced for Testing
4+
-- @exportedAt: 2026-07-03T21:38:44.687Z
5+
-- @opIds: 11674, 11675, 11676, 11677, 11678, 11679, 11680, 11681, 11682, 11683
6+
7+
-- --- BEGIN op 11674 ( update custom_format "2160p SDR" )
8+
update "custom_formats" set "name" = '2160p SDR' where "name" = 'SDR';
9+
-- --- END op 11674
10+
11+
-- --- BEGIN op 11675 ( create custom_format "2160p iTunes Enhancement" )
12+
insert into "custom_formats" ("name", "description") values ('2160p iTunes Enhancement', '');
13+
-- --- END op 11675
14+
15+
-- --- BEGIN op 11676 ( update custom_format "2160p iTunes Enhancement" )
16+
update "custom_formats" set "description" = 'Augments the Streaming Service Score for 1080p Releases and below for 2160p Profiles' where "name" = '2160p iTunes Enhancement' and "description" = '';
17+
-- --- END op 11676
18+
19+
-- --- BEGIN op 11677 ( update custom_format "2160p iTunes Enhancement" )
20+
insert into "tags" ("name") values ('Enhancement') on conflict ("name") do nothing;
21+
22+
insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('2160p iTunes Enhancement', 'Enhancement');
23+
-- --- END op 11677
24+
25+
-- --- BEGIN op 11678 ( update custom_format "2160p iTunes Enhancement" )
26+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
27+
VALUES ('2160p iTunes Enhancement', 'Not 2160p', 'resolution', 'all', 1, 1);
28+
29+
INSERT INTO condition_resolutions (custom_format_name, condition_name, resolution) VALUES ('2160p iTunes Enhancement', 'Not 2160p', '2160p');
30+
-- --- END op 11678
31+
32+
-- --- BEGIN op 11679 ( update custom_format "2160p iTunes Enhancement" )
33+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
34+
VALUES ('2160p iTunes Enhancement', 'iT', 'release_title', 'all', 0, 1);
35+
36+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p iTunes Enhancement', 'iT', 'iTunes');
37+
-- --- END op 11679
38+
39+
-- --- BEGIN op 11680 ( update custom_format "2160p iTunes Enhancement" )
40+
DELETE FROM custom_format_conditions
41+
WHERE custom_format_name = '2160p iTunes Enhancement'
42+
AND name = 'Not 2160p'
43+
AND type = 'resolution'
44+
AND arr_type = 'all'
45+
AND negate = 1
46+
AND required = 1;
47+
-- --- END op 11680
48+
49+
-- --- BEGIN op 11681 ( update custom_format "2160p iTunes Enhancement" )
50+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
51+
VALUES ('2160p iTunes Enhancement', '2160p', 'resolution', 'all', 0, 1);
52+
53+
INSERT INTO condition_resolutions (custom_format_name, condition_name, resolution) VALUES ('2160p iTunes Enhancement', '2160p', '2160p');
54+
-- --- END op 11681
55+
56+
-- --- BEGIN op 11682 ( update custom_format "2160p iTunes Enhancement" )
57+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
58+
VALUES ('2160p iTunes Enhancement', 'DV HDR', 'release_title', 'all', 1, 1);
59+
60+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p iTunes Enhancement', 'DV HDR', 'Basic HDR Formats');
61+
-- --- END op 11682
62+
63+
-- --- BEGIN op 11683 ( update quality_profile "2160p Balanced" )
64+
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
65+
SELECT '2160p Balanced', '2160p iTunes Enhancement', 'radarr', 0
66+
WHERE NOT EXISTS (
67+
SELECT 1 FROM quality_profile_custom_formats
68+
WHERE quality_profile_name = '2160p Balanced'
69+
AND custom_format_name = '2160p iTunes Enhancement'
70+
AND arr_type = 'radarr'
71+
);
72+
-- --- END op 11683

0 commit comments

Comments
 (0)