|
| 1 | +-- @operation: export |
| 2 | +-- @entity: batch |
| 3 | +-- @name: Add SDR CF to 2160p Profiles to Highlight NON MA SDR Releases |
| 4 | +-- @exportedAt: 2026-07-11T00:11:48.526Z |
| 5 | +-- @opIds: 12326, 12327, 12333, 12334, 12335, 12336 |
| 6 | + |
| 7 | +-- --- BEGIN op 12326 ( update quality_profile "2160p Balanced" ) |
| 8 | +DELETE FROM quality_profile_custom_formats |
| 9 | +WHERE quality_profile_name = '2160p Balanced' |
| 10 | + AND custom_format_name = '2160p iTunes Enhancement' |
| 11 | + AND arr_type = 'radarr' |
| 12 | + AND score = 0; |
| 13 | +-- --- END op 12326 |
| 14 | + |
| 15 | +-- --- BEGIN op 12327 ( update quality_profile "2160p Balanced" ) |
| 16 | +INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score) |
| 17 | +SELECT '2160p Balanced', '2160p SDR', 'radarr', 0 |
| 18 | +WHERE NOT EXISTS ( |
| 19 | + SELECT 1 FROM quality_profile_custom_formats |
| 20 | + WHERE quality_profile_name = '2160p Balanced' |
| 21 | + AND custom_format_name = '2160p SDR' |
| 22 | + AND arr_type = 'radarr' |
| 23 | +); |
| 24 | +-- --- END op 12327 |
| 25 | + |
| 26 | +-- --- BEGIN op 12333 ( update custom_format "SDR" ) |
| 27 | +update "custom_formats" set "name" = 'SDR' where "name" = '2160p SDR'; |
| 28 | +-- --- END op 12333 |
| 29 | + |
| 30 | +-- --- BEGIN op 12334 ( update quality_profile "2160p Balanced" ) |
| 31 | +update "quality_profile_custom_formats" set "custom_format_name" = 'SDR' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = '2160p SDR' and "arr_type" = 'radarr' and "score" = 0; |
| 32 | +-- --- END op 12334 |
| 33 | + |
| 34 | +-- --- BEGIN op 12335 ( update quality_profile "2160p Remux" ) |
| 35 | +INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score) |
| 36 | +SELECT '2160p Remux', 'SDR', 'radarr', 0 |
| 37 | +WHERE NOT EXISTS ( |
| 38 | + SELECT 1 FROM quality_profile_custom_formats |
| 39 | + WHERE quality_profile_name = '2160p Remux' |
| 40 | + AND custom_format_name = 'SDR' |
| 41 | + AND arr_type = 'radarr' |
| 42 | +); |
| 43 | +-- --- END op 12335 |
| 44 | + |
| 45 | +-- --- BEGIN op 12336 ( update quality_profile "2160p Efficient" ) |
| 46 | +INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score) |
| 47 | +SELECT '2160p Efficient', 'SDR', 'radarr', 0 |
| 48 | +WHERE NOT EXISTS ( |
| 49 | + SELECT 1 FROM quality_profile_custom_formats |
| 50 | + WHERE quality_profile_name = '2160p Efficient' |
| 51 | + AND custom_format_name = 'SDR' |
| 52 | + AND arr_type = 'radarr' |
| 53 | +); |
| 54 | +-- --- END op 12336 |
0 commit comments