mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2026-03-15 09:30:08 -04:00
Compare commits
28 Commits
efa498e43c
...
20c21b2bcd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20c21b2bcd | ||
|
|
217d7d4462 | ||
|
|
8a590fe8bc | ||
|
|
a1ece15046 | ||
|
|
55bcc6d774 | ||
|
|
68a562f540 | ||
|
|
4a558a14a1 | ||
|
|
132c1d2684 | ||
|
|
757680e7f7 | ||
|
|
af25f6b474 | ||
|
|
4961da7cee | ||
|
|
f6e64b9939 | ||
|
|
8ae929b280 | ||
|
|
11e0ee1e8b | ||
|
|
0efb2c7fe3 | ||
|
|
a44d02d248 | ||
|
|
121b0705ae | ||
|
|
9af55a6036 | ||
|
|
dbe53e1d32 | ||
|
|
8fe8058d6d | ||
|
|
811b4b35ec | ||
|
|
78ac3c5421 | ||
|
|
cad1bf0aa1 | ||
|
|
c3d716326c | ||
|
|
741efefd9c | ||
|
|
972d76e375 | ||
|
|
0c0484b14e | ||
|
|
8eec22ba06 |
20
ops/33.fix-release-group-missing-cf.sql
Normal file
20
ops/33.fix-release-group-missing-cf.sql
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Fix Release Group (Missing) CF
|
||||||
|
-- @exportedAt: 2026-02-09T01:06:11.523Z
|
||||||
|
-- @opIds: 1420
|
||||||
|
|
||||||
|
-- --- BEGIN op 1420 ( update custom_format "Release Group (Missing)" )
|
||||||
|
UPDATE custom_format_conditions
|
||||||
|
SET type = 'release_group'
|
||||||
|
WHERE custom_format_name = 'Release Group (Missing)'
|
||||||
|
AND name = 'Release Group (Missing)'
|
||||||
|
AND type = 'release_title'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 1
|
||||||
|
AND required = 0;
|
||||||
|
|
||||||
|
DELETE FROM condition_patterns WHERE custom_format_name = 'Release Group (Missing)' AND condition_name = 'Release Group (Missing)' AND regular_expression_name = 'Release Group (Missing)';
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Release Group (Missing)', 'Release Group (Missing)', 'Release Group (Missing)');
|
||||||
|
-- --- END op 1420
|
||||||
26
ops/34.add-remux-negation-to-release-group-missing.sql
Normal file
26
ops/34.add-remux-negation-to-release-group-missing.sql
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add Remux Negation to Release Group (Missing)
|
||||||
|
-- @exportedAt: 2026-02-09T01:11:39.739Z
|
||||||
|
-- @opIds: 1422, 1423, 1424
|
||||||
|
|
||||||
|
-- --- BEGIN op 1422 ( update custom_format "Release Group (Missing)" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Release Group (Missing)', 'Remux Quality Match', 'quality_modifier', 'radarr', 1, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_quality_modifiers (custom_format_name, condition_name, quality_modifier) VALUES ('Release Group (Missing)', 'Remux Quality Match', 'remux');
|
||||||
|
-- --- END op 1422
|
||||||
|
|
||||||
|
-- --- BEGIN op 1423 ( update custom_format "Release Group (Missing)" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Release Group (Missing)', 'Remux Source', 'source', 'sonarr', 1, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_sources (custom_format_name, condition_name, source) VALUES ('Release Group (Missing)', 'Remux Source', 'bluray_raw');
|
||||||
|
-- --- END op 1423
|
||||||
|
|
||||||
|
-- --- BEGIN op 1424 ( update custom_format "Release Group (Missing)" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Release Group (Missing)', 'Remux', 'release_title', 'all', 1, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Release Group (Missing)', 'Remux', 'Remux');
|
||||||
|
-- --- END op 1424
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Increase Max Upgrade Until Score for all Profiles to 1,000,0000 (Yay OCD?)
|
||||||
|
-- @exportedAt: 2026-02-09T01:21:52.358Z
|
||||||
|
-- @opIds: 1426, 1427, 1428, 1429, 1430, 1431, 1432, 1433, 1434, 1435, 1436
|
||||||
|
|
||||||
|
-- --- BEGIN op 1426 ( update quality_profile "1080p Balanced" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Balanced' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1426
|
||||||
|
|
||||||
|
-- --- BEGIN op 1427 ( update quality_profile "1080p Compact" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Compact' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1427
|
||||||
|
|
||||||
|
-- --- BEGIN op 1428 ( update quality_profile "1080p Efficient" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Efficient' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1428
|
||||||
|
|
||||||
|
-- --- BEGIN op 1429 ( update quality_profile "1080p Quality" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Quality' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1429
|
||||||
|
|
||||||
|
-- --- BEGIN op 1430 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Quality HDR' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1430
|
||||||
|
|
||||||
|
-- --- BEGIN op 1431 ( update quality_profile "1080p Remux" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '1080p Remux' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1431
|
||||||
|
|
||||||
|
-- --- BEGIN op 1432 ( update quality_profile "2160p Balanced" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '2160p Balanced' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1432
|
||||||
|
|
||||||
|
-- --- BEGIN op 1433 ( update quality_profile "2160p Efficient" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '2160p Efficient' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1433
|
||||||
|
|
||||||
|
-- --- BEGIN op 1434 ( update quality_profile "2160p Quality" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '2160p Quality' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1434
|
||||||
|
|
||||||
|
-- --- BEGIN op 1435 ( update quality_profile "2160p Remux" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '2160p Remux' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1435
|
||||||
|
|
||||||
|
-- --- BEGIN op 1436 ( update quality_profile "720p Quality" )
|
||||||
|
update "quality_profiles" set "upgrade_until_score" = 1000000 where "name" = '720p Quality' and "upgrade_until_score" = 888888;
|
||||||
|
-- --- END op 1436
|
||||||
@@ -0,0 +1,387 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Remove WEBRip Source CFs from Sonarr Side of All Profiles
|
||||||
|
-- @exportedAt: 2026-02-09T17:54:21.273Z
|
||||||
|
-- @opIds: 1447, 1448, 1449, 1450, 1451, 1452, 1453, 1454, 1455, 1456, 1457, 1458, 1459, 1460, 1461, 1462, 1463, 1464, 1465, 1466, 1467, 1468, 1469, 1470, 1471, 1472, 1473, 1474, 1475, 1476, 1477, 1478, 1479, 1480, 1481, 1482, 1483, 1484, 1485, 1486, 1487, 1488, 1489, 1490
|
||||||
|
|
||||||
|
-- --- BEGIN op 1447 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1447
|
||||||
|
|
||||||
|
-- --- BEGIN op 1448 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1448
|
||||||
|
|
||||||
|
-- --- BEGIN op 1449 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1449
|
||||||
|
|
||||||
|
-- --- BEGIN op 1450 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1450
|
||||||
|
|
||||||
|
-- --- BEGIN op 1451 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 620000;
|
||||||
|
-- --- END op 1451
|
||||||
|
|
||||||
|
-- --- BEGIN op 1452 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1452
|
||||||
|
|
||||||
|
-- --- BEGIN op 1453 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1453
|
||||||
|
|
||||||
|
-- --- BEGIN op 1454 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1454
|
||||||
|
|
||||||
|
-- --- BEGIN op 1455 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 620000;
|
||||||
|
-- --- END op 1455
|
||||||
|
|
||||||
|
-- --- BEGIN op 1456 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1456
|
||||||
|
|
||||||
|
-- --- BEGIN op 1457 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', '1080p WEBRip', 'radarr', 280000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1457
|
||||||
|
|
||||||
|
-- --- BEGIN op 1458 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', '1080p WEBRip', 'sonarr', 280000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1458
|
||||||
|
|
||||||
|
-- --- BEGIN op 1459 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1459
|
||||||
|
|
||||||
|
-- --- BEGIN op 1460 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', '720p WEBRip', 'radarr', 180000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1460
|
||||||
|
|
||||||
|
-- --- BEGIN op 1461 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', '720p WEBRip', 'sonarr', 180000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1461
|
||||||
|
|
||||||
|
-- --- BEGIN op 1462 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1462
|
||||||
|
|
||||||
|
-- --- BEGIN op 1463 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1463
|
||||||
|
|
||||||
|
-- --- BEGIN op 1464 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1464
|
||||||
|
|
||||||
|
-- --- BEGIN op 1465 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1465
|
||||||
|
|
||||||
|
-- --- BEGIN op 1466 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1466
|
||||||
|
|
||||||
|
-- --- BEGIN op 1467 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 620000;
|
||||||
|
-- --- END op 1467
|
||||||
|
|
||||||
|
-- --- BEGIN op 1468 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1468
|
||||||
|
|
||||||
|
-- --- BEGIN op 1469 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1469
|
||||||
|
|
||||||
|
-- --- BEGIN op 1470 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1470
|
||||||
|
|
||||||
|
-- --- BEGIN op 1471 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 620000;
|
||||||
|
-- --- END op 1471
|
||||||
|
|
||||||
|
-- --- BEGIN op 1472 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1472
|
||||||
|
|
||||||
|
-- --- BEGIN op 1473 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', '1080p WEBRip', 'radarr', 280000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1473
|
||||||
|
|
||||||
|
-- --- BEGIN op 1474 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', '1080p WEBRip', 'sonarr', 280000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1474
|
||||||
|
|
||||||
|
-- --- BEGIN op 1475 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1475
|
||||||
|
|
||||||
|
-- --- BEGIN op 1476 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', '720p WEBRip', 'radarr', 180000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1476
|
||||||
|
|
||||||
|
-- --- BEGIN op 1477 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', '720p WEBRip', 'sonarr', 180000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1477
|
||||||
|
|
||||||
|
-- --- BEGIN op 1478 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1478
|
||||||
|
|
||||||
|
-- --- BEGIN op 1479 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '1080p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 280000;
|
||||||
|
-- --- END op 1479
|
||||||
|
|
||||||
|
-- --- BEGIN op 1480 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1480
|
||||||
|
|
||||||
|
-- --- BEGIN op 1481 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1481
|
||||||
|
|
||||||
|
-- --- BEGIN op 1482 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1482
|
||||||
|
|
||||||
|
-- --- BEGIN op 1483 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', '720p WEBRip', 'radarr', 460000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1483
|
||||||
|
|
||||||
|
-- --- BEGIN op 1484 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', '720p WEBRip', 'sonarr', 460000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1484
|
||||||
|
|
||||||
|
-- --- BEGIN op 1485 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1485
|
||||||
|
|
||||||
|
-- --- BEGIN op 1486 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1486
|
||||||
|
|
||||||
|
-- --- BEGIN op 1487 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1487
|
||||||
|
|
||||||
|
-- --- BEGIN op 1488 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1488
|
||||||
|
|
||||||
|
-- --- BEGIN op 1489 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 180000;
|
||||||
|
-- --- END op 1489
|
||||||
|
|
||||||
|
-- --- BEGIN op 1490 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = '720p WEBRip'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = 460000;
|
||||||
|
-- --- END op 1490
|
||||||
15
ops/37.simplify-not-original-cf.sql
Normal file
15
ops/37.simplify-not-original-cf.sql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Simplify Not Original CF
|
||||||
|
-- @exportedAt: 2026-02-10T00:52:40.489Z
|
||||||
|
-- @opIds: 1492
|
||||||
|
|
||||||
|
-- --- BEGIN op 1492 ( update custom_format "Not Original" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Not Original'
|
||||||
|
AND name = 'Not Original'
|
||||||
|
AND type = 'language'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 1;
|
||||||
|
-- --- END op 1492
|
||||||
15
ops/38.simplify-not-only-original-cf.sql
Normal file
15
ops/38.simplify-not-only-original-cf.sql
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Simplify Not Only Original CF
|
||||||
|
-- @exportedAt: 2026-02-10T00:55:56.267Z
|
||||||
|
-- @opIds: 1494
|
||||||
|
|
||||||
|
-- --- BEGIN op 1494 ( update custom_format "Not Only Original" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Not Only Original'
|
||||||
|
AND name = 'Original'
|
||||||
|
AND type = 'language'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 1;
|
||||||
|
-- --- END op 1494
|
||||||
65
ops/39.create-not-original-or-english-cf.sql
Normal file
65
ops/39.create-not-original-or-english-cf.sql
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Create Not Original or English CF
|
||||||
|
-- @exportedAt: 2026-02-10T01:02:29.481Z
|
||||||
|
-- @opIds: 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508
|
||||||
|
|
||||||
|
-- --- BEGIN op 1496 ( create custom_format "Not Original or English" )
|
||||||
|
insert into "custom_formats" ("name", "description") values ('Not Original or English', '');
|
||||||
|
-- --- END op 1496
|
||||||
|
|
||||||
|
-- --- BEGIN op 1497 ( update custom_format "Not Original or English" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language track. Multiple audio tracks is allowed' where "name" = 'Not Original or English' and "description" = '';
|
||||||
|
-- --- END op 1497
|
||||||
|
|
||||||
|
-- --- BEGIN op 1498 ( update custom_format "Not Original or English" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Not Original or English', 'Original', 'language', 'all', 1, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_languages (custom_format_name, condition_name, language_name, except_language) VALUES ('Not Original or English', 'Original', 'Original', 0);
|
||||||
|
-- --- END op 1498
|
||||||
|
|
||||||
|
-- --- BEGIN op 1499 ( update custom_format "Not Original or English" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Not Original or English', 'English', 'language', 'all', 1, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_languages (custom_format_name, condition_name, language_name, except_language) VALUES ('Not Original or English', 'English', 'English', 0);
|
||||||
|
-- --- END op 1499
|
||||||
|
|
||||||
|
-- --- BEGIN op 1500 ( update custom_format "Not Original or English" )
|
||||||
|
insert into "tags" ("name") values ('Language') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Not Original or English', 'Language');
|
||||||
|
-- --- END op 1500
|
||||||
|
|
||||||
|
-- --- BEGIN op 1501 ( update custom_format "Not Only Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks is NOT allowed.';
|
||||||
|
-- --- END op 1501
|
||||||
|
|
||||||
|
-- --- BEGIN op 1502 ( update custom_format "Not Only Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''t include the Original language. Multiple audio tracks are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks are NOT allowed.';
|
||||||
|
-- --- END op 1502
|
||||||
|
|
||||||
|
-- --- BEGIN op 1503 ( update custom_format "Not Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks is allowed' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language track. Multiple audio tracks is allowed';
|
||||||
|
-- --- END op 1503
|
||||||
|
|
||||||
|
-- --- BEGIN op 1504 ( update custom_format "Not Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks are allowed' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks is allowed';
|
||||||
|
-- --- END op 1504
|
||||||
|
|
||||||
|
-- --- BEGIN op 1505 ( update custom_format "Not Original or English" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language. Multiple audio tracks is allowed' where "name" = 'Not Original or English' and "description" = 'Matches releases that don''''t include the Original or English language track. Multiple audio tracks is allowed';
|
||||||
|
-- --- END op 1505
|
||||||
|
|
||||||
|
-- --- BEGIN op 1506 ( update custom_format "Not Only Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''t include the Original language. Other Languages are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language. Multiple audio tracks are NOT allowed.';
|
||||||
|
-- --- END op 1506
|
||||||
|
|
||||||
|
-- --- BEGIN op 1507 ( update custom_format "Not Original" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Other Languages are allowed.' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks are allowed';
|
||||||
|
-- --- END op 1507
|
||||||
|
|
||||||
|
-- --- BEGIN op 1508 ( update custom_format "Not Original or English" )
|
||||||
|
update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language. Other Languages are allowed.' where "name" = 'Not Original or English' and "description" = 'Matches releases that don''''t include the Original or English language. Multiple audio tracks is allowed';
|
||||||
|
-- --- END op 1508
|
||||||
27
ops/40.change-not-original-or-english-conditions.sql
Normal file
27
ops/40.change-not-original-or-english-conditions.sql
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Change Not Original or English Conditions
|
||||||
|
-- @exportedAt: 2026-02-10T01:47:14.030Z
|
||||||
|
-- @opIds: 1510, 1511
|
||||||
|
|
||||||
|
-- --- BEGIN op 1510 ( update custom_format "Not Original or English" )
|
||||||
|
UPDATE custom_format_conditions
|
||||||
|
SET required = 1
|
||||||
|
WHERE custom_format_name = 'Not Original or English'
|
||||||
|
AND name = 'English'
|
||||||
|
AND type = 'language'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 1
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 1510
|
||||||
|
|
||||||
|
-- --- BEGIN op 1511 ( update custom_format "Not Original or English" )
|
||||||
|
UPDATE custom_format_conditions
|
||||||
|
SET required = 1
|
||||||
|
WHERE custom_format_name = 'Not Original or English'
|
||||||
|
AND name = 'Original'
|
||||||
|
AND type = 'language'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 1
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 1511
|
||||||
460
ops/41.change-default-language-settings-cf-for-all-profiles.sql
Normal file
460
ops/41.change-default-language-settings-cf-for-all-profiles.sql
Normal file
@@ -0,0 +1,460 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Change Default Language Settings/CF for all Profiles
|
||||||
|
-- @exportedAt: 2026-02-10T16:58:42.574Z
|
||||||
|
-- @opIds: 1513, 1514, 1515, 1516, 1517, 1518, 1519, 1520, 1521, 1522, 1523, 1524, 1530, 1531, 1532, 1533, 1534, 1535, 1536, 1537, 1538, 1539, 1540, 1541, 1542, 1543, 1544, 1545, 1546, 1547, 1548, 1549, 1550, 1551, 1552, 1553, 1554, 1555, 1556, 1557, 1558, 1559, 1560, 1561, 1562
|
||||||
|
|
||||||
|
-- --- BEGIN op 1513 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Balanced' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Balanced', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Balanced' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1513
|
||||||
|
|
||||||
|
-- --- BEGIN op 1514 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Compact' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Compact', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Compact' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1514
|
||||||
|
|
||||||
|
-- --- BEGIN op 1515 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Efficient' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Efficient', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Efficient' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1515
|
||||||
|
|
||||||
|
-- --- BEGIN op 1516 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1516
|
||||||
|
|
||||||
|
-- --- BEGIN op 1517 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality HDR' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality HDR', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1517
|
||||||
|
|
||||||
|
-- --- BEGIN op 1518 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Remux' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Remux', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Remux' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1518
|
||||||
|
|
||||||
|
-- --- BEGIN op 1519 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Balanced' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Balanced', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Balanced' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1519
|
||||||
|
|
||||||
|
-- --- BEGIN op 1520 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Efficient' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Efficient', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Efficient' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1520
|
||||||
|
|
||||||
|
-- --- BEGIN op 1521 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Quality' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Quality' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1521
|
||||||
|
|
||||||
|
-- --- BEGIN op 1522 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Remux' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
-- --- END op 1522
|
||||||
|
|
||||||
|
-- --- BEGIN op 1523 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Remux' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Remux', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Remux' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1523
|
||||||
|
|
||||||
|
-- --- BEGIN op 1524 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '720p Quality' AND language_name = 'Original' AND type = 'simple';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '720p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '720p Quality' AND type = 'simple'
|
||||||
|
);
|
||||||
|
-- --- END op 1524
|
||||||
|
|
||||||
|
-- --- BEGIN op 1530 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1530
|
||||||
|
|
||||||
|
-- --- BEGIN op 1531 ( update quality_profile "1080p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Balanced', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1531
|
||||||
|
|
||||||
|
-- --- BEGIN op 1532 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1532
|
||||||
|
|
||||||
|
-- --- BEGIN op 1533 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1533
|
||||||
|
|
||||||
|
-- --- BEGIN op 1534 ( update quality_profile "1080p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Balanced', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1534
|
||||||
|
|
||||||
|
-- --- BEGIN op 1535 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1535
|
||||||
|
|
||||||
|
-- --- BEGIN op 1536 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1536
|
||||||
|
|
||||||
|
-- --- BEGIN op 1537 ( update quality_profile "1080p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Efficient', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1537
|
||||||
|
|
||||||
|
-- --- BEGIN op 1538 ( update quality_profile "1080p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Efficient', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1538
|
||||||
|
|
||||||
|
-- --- BEGIN op 1539 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1539
|
||||||
|
|
||||||
|
-- --- BEGIN op 1540 ( update quality_profile "1080p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1540
|
||||||
|
|
||||||
|
-- --- BEGIN op 1541 ( update quality_profile "1080p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1541
|
||||||
|
|
||||||
|
-- --- BEGIN op 1542 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1542
|
||||||
|
|
||||||
|
-- --- BEGIN op 1543 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality HDR', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1543
|
||||||
|
|
||||||
|
-- --- BEGIN op 1544 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality HDR', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1544
|
||||||
|
|
||||||
|
-- --- BEGIN op 1545 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1545
|
||||||
|
|
||||||
|
-- --- BEGIN op 1546 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1546
|
||||||
|
|
||||||
|
-- --- BEGIN op 1547 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1547
|
||||||
|
|
||||||
|
-- --- BEGIN op 1548 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1548
|
||||||
|
|
||||||
|
-- --- BEGIN op 1549 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1549
|
||||||
|
|
||||||
|
-- --- BEGIN op 1550 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1550
|
||||||
|
|
||||||
|
-- --- BEGIN op 1551 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1551
|
||||||
|
|
||||||
|
-- --- BEGIN op 1552 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1552
|
||||||
|
|
||||||
|
-- --- BEGIN op 1553 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1553
|
||||||
|
|
||||||
|
-- --- BEGIN op 1554 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1554
|
||||||
|
|
||||||
|
-- --- BEGIN op 1555 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1555
|
||||||
|
|
||||||
|
-- --- BEGIN op 1556 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1556
|
||||||
|
|
||||||
|
-- --- BEGIN op 1557 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1557
|
||||||
|
|
||||||
|
-- --- BEGIN op 1558 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1558
|
||||||
|
|
||||||
|
-- --- BEGIN op 1559 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1559
|
||||||
|
|
||||||
|
-- --- BEGIN op 1560 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = 'Not Original'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
AND score = -999999;
|
||||||
|
-- --- END op 1560
|
||||||
|
|
||||||
|
-- --- BEGIN op 1561 ( update quality_profile "720p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '720p Quality', 'Not Original or English', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1561
|
||||||
|
|
||||||
|
-- --- BEGIN op 1562 ( update quality_profile "720p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '720p Quality', 'Not Original or English', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = 'Not Original or English'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 1562
|
||||||
File diff suppressed because it is too large
Load Diff
16
ops/43.ban-all-webrips-on-non-265-profiles-sonarr-side.sql
Normal file
16
ops/43.ban-all-webrips-on-non-265-profiles-sonarr-side.sql
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Ban All WEBRips on non 265 Profiles Sonarr Side
|
||||||
|
-- @exportedAt: 2026-02-11T18:17:31.938Z
|
||||||
|
-- @opIds: 44
|
||||||
|
|
||||||
|
-- --- BEGIN op 44 ( update custom_format "Banned WEBRip" )
|
||||||
|
UPDATE custom_format_conditions
|
||||||
|
SET arr_type = 'radarr'
|
||||||
|
WHERE custom_format_name = 'Banned WEBRip'
|
||||||
|
AND name = 'Release Groups'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 1
|
||||||
|
AND required = 1;
|
||||||
|
-- --- END op 44
|
||||||
51
ops/44.fix-rarbg.sql
Normal file
51
ops/44.fix-rarbg.sql
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Fix RARBG
|
||||||
|
-- @exportedAt: 2026-02-11T18:21:00.406Z
|
||||||
|
-- @opIds: 46, 47, 48, 49, 50, 51, 52
|
||||||
|
|
||||||
|
-- --- BEGIN op 46 ( update regular_expression "RARBG" )
|
||||||
|
update "regular_expressions" set "name" = 'RARBG', "pattern" = '(?<=^|[\s.-])RARBG\b' where "name" = 'RARGB' and "pattern" = '(?<=^|[\s.-])RARGB\b';
|
||||||
|
-- --- END op 46
|
||||||
|
|
||||||
|
-- --- BEGIN op 47 ( update custom_format "Banned Groups" )
|
||||||
|
update "condition_patterns" set "regular_expression_name" = 'RARBG' where "custom_format_name" = 'Banned Groups' and "condition_name" = 'RARGB' and "regular_expression_name" = 'RARGB';
|
||||||
|
-- --- END op 47
|
||||||
|
|
||||||
|
-- --- BEGIN op 48 ( update custom_format "Banned Groups (Efficient)" )
|
||||||
|
update "condition_patterns" set "regular_expression_name" = 'RARBG' where "custom_format_name" = 'Banned Groups (Efficient)' and "condition_name" = 'RARGB' and "regular_expression_name" = 'RARGB';
|
||||||
|
-- --- END op 48
|
||||||
|
|
||||||
|
-- --- BEGIN op 49 ( update custom_format "Banned Groups" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Banned Groups'
|
||||||
|
AND name = 'RARGB'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 49
|
||||||
|
|
||||||
|
-- --- BEGIN op 50 ( update custom_format "Banned Groups" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Banned Groups', 'RARBG', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups', 'RARBG', 'RARBG');
|
||||||
|
-- --- END op 50
|
||||||
|
|
||||||
|
-- --- BEGIN op 51 ( update custom_format "Banned Groups (Efficient)" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Banned Groups (Efficient)'
|
||||||
|
AND name = 'RARGB'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 51
|
||||||
|
|
||||||
|
-- --- BEGIN op 52 ( update custom_format "Banned Groups (Efficient)" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('Banned Groups (Efficient)', 'RARBG', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Groups (Efficient)', 'RARBG', 'RARBG');
|
||||||
|
-- --- END op 52
|
||||||
19
ops/45.add-2160p-negation-to-sdtv-cfs.sql
Normal file
19
ops/45.add-2160p-negation-to-sdtv-cfs.sql
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add 2160p Negation to SDTV CFs
|
||||||
|
-- @exportedAt: 2026-02-11T18:40:33.734Z
|
||||||
|
-- @opIds: 54, 55
|
||||||
|
|
||||||
|
-- --- BEGIN op 54 ( update custom_format "SDTV" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('SDTV', 'Not 2160p', 'resolution', 'all', 1, 1);
|
||||||
|
|
||||||
|
INSERT INTO condition_resolutions (custom_format_name, condition_name, resolution) VALUES ('SDTV', 'Not 2160p', '2160p');
|
||||||
|
-- --- END op 54
|
||||||
|
|
||||||
|
-- --- BEGIN op 55 ( update custom_format "SDTV Tier 1" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('SDTV Tier 1', 'Not 2160p', 'resolution', 'all', 1, 1);
|
||||||
|
|
||||||
|
INSERT INTO condition_resolutions (custom_format_name, condition_name, resolution) VALUES ('SDTV Tier 1', 'Not 2160p', '2160p');
|
||||||
|
-- --- END op 55
|
||||||
189
ops/46.rename-sd-tiers-to-dvd-tiers.sql
Normal file
189
ops/46.rename-sd-tiers-to-dvd-tiers.sql
Normal file
@@ -0,0 +1,189 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Rename SD Tiers to DVD Tiers
|
||||||
|
-- @exportedAt: 2026-02-11T18:46:26.807Z
|
||||||
|
-- @opIds: 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84
|
||||||
|
|
||||||
|
-- --- BEGIN op 57 ( update custom_format "DVD Quality Tier 1" )
|
||||||
|
update "custom_formats" set "name" = 'DVD Quality Tier 1' where "name" = 'SD Quality Tier 1';
|
||||||
|
-- --- END op 57
|
||||||
|
|
||||||
|
-- --- BEGIN op 58 ( update quality_profile "1080p Balanced" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 58
|
||||||
|
|
||||||
|
-- --- BEGIN op 59 ( update quality_profile "1080p Compact" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Compact' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 21000;
|
||||||
|
-- --- END op 59
|
||||||
|
|
||||||
|
-- --- BEGIN op 60 ( update quality_profile "1080p Efficient" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 60
|
||||||
|
|
||||||
|
-- --- BEGIN op 61 ( update quality_profile "1080p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 61
|
||||||
|
|
||||||
|
-- --- BEGIN op 62 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 62
|
||||||
|
|
||||||
|
-- --- BEGIN op 63 ( update quality_profile "1080p Remux" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '1080p Remux' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
-- --- END op 63
|
||||||
|
|
||||||
|
-- --- BEGIN op 64 ( update quality_profile "2160p Balanced" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 64
|
||||||
|
|
||||||
|
-- --- BEGIN op 65 ( update quality_profile "2160p Efficient" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 65
|
||||||
|
|
||||||
|
-- --- BEGIN op 66 ( update quality_profile "2160p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 66
|
||||||
|
|
||||||
|
-- --- BEGIN op 67 ( update quality_profile "2160p Remux" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '2160p Remux' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
-- --- END op 67
|
||||||
|
|
||||||
|
-- --- BEGIN op 68 ( update quality_profile "720p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'all' and "score" = 11000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'radarr' and "score" = 21000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 1' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 1' and "arr_type" = 'sonarr' and "score" = 21000;
|
||||||
|
-- --- END op 68
|
||||||
|
|
||||||
|
-- --- BEGIN op 69 ( update custom_format "DVD Quality Tier 1" )
|
||||||
|
update "custom_formats" set "description" = 'Matches release groups who fall under DVD GPPi Tier 1' where "name" = 'DVD Quality Tier 1' and "description" = 'Matches release groups who fall under SD GPPi Tier 1';
|
||||||
|
-- --- END op 69
|
||||||
|
|
||||||
|
-- --- BEGIN op 70 ( update custom_format "DVD Quality Tier 2" )
|
||||||
|
update "custom_formats" set "description" = 'Matches release groups who fall under DVD GPPi Tier 2' where "name" = 'SD Quality Tier 2' and "description" = 'Matches release groups who fall under SD GPPi Tier 2';
|
||||||
|
-- --- END op 70
|
||||||
|
|
||||||
|
-- --- BEGIN op 71 ( update custom_format "DVD Quality Tier 2" )
|
||||||
|
DELETE FROM custom_format_tags WHERE custom_format_name = 'SD Quality Tier 2' AND tag_name = 'SD';
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('DVD') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('SD Quality Tier 2', 'DVD');
|
||||||
|
-- --- END op 71
|
||||||
|
|
||||||
|
-- --- BEGIN op 72 ( update custom_format "DVD Quality Tier 2" )
|
||||||
|
update "custom_formats" set "name" = 'DVD Quality Tier 2' where "name" = 'SD Quality Tier 2';
|
||||||
|
-- --- END op 72
|
||||||
|
|
||||||
|
-- --- BEGIN op 73 ( update quality_profile "1080p Balanced" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 73
|
||||||
|
|
||||||
|
-- --- BEGIN op 74 ( update quality_profile "1080p Compact" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Compact' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 20000;
|
||||||
|
-- --- END op 74
|
||||||
|
|
||||||
|
-- --- BEGIN op 75 ( update quality_profile "1080p Efficient" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 75
|
||||||
|
|
||||||
|
-- --- BEGIN op 76 ( update quality_profile "1080p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 76
|
||||||
|
|
||||||
|
-- --- BEGIN op 77 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Quality HDR' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 77
|
||||||
|
|
||||||
|
-- --- BEGIN op 78 ( update quality_profile "1080p Remux" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '1080p Remux' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
-- --- END op 78
|
||||||
|
|
||||||
|
-- --- BEGIN op 79 ( update quality_profile "2160p Balanced" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Balanced' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 79
|
||||||
|
|
||||||
|
-- --- BEGIN op 80 ( update quality_profile "2160p Efficient" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Efficient' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 80
|
||||||
|
|
||||||
|
-- --- BEGIN op 81 ( update quality_profile "2160p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 81
|
||||||
|
|
||||||
|
-- --- BEGIN op 82 ( update quality_profile "2160p Remux" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '2160p Remux' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
-- --- END op 82
|
||||||
|
|
||||||
|
-- --- BEGIN op 83 ( update quality_profile "720p Quality" )
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'all' and "score" = 10000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'radarr' and "score" = 20000;
|
||||||
|
|
||||||
|
update "quality_profile_custom_formats" set "custom_format_name" = 'DVD Quality Tier 2' where "quality_profile_name" = '720p Quality' and "custom_format_name" = 'SD Quality Tier 2' and "arr_type" = 'sonarr' and "score" = 20000;
|
||||||
|
-- --- END op 83
|
||||||
|
|
||||||
|
-- --- BEGIN op 84 ( update custom_format "DVD Quality Tier 1" )
|
||||||
|
DELETE FROM custom_format_tags WHERE custom_format_name = 'DVD Quality Tier 1' AND tag_name = 'SD';
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('DVD') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('DVD Quality Tier 1', 'DVD');
|
||||||
|
-- --- END op 84
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: fix: set qp languages to any (update logic was borked before)
|
||||||
|
-- @exportedAt: 2026-02-12T10:14:28.677Z
|
||||||
|
-- @opIds: 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028
|
||||||
|
|
||||||
|
-- --- BEGIN op 2004 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Balanced' AND language_name = 'Any' AND type = 'simple';
|
||||||
|
-- --- END op 2004
|
||||||
|
|
||||||
|
-- --- BEGIN op 2005 ( update quality_profile "1080p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Balanced' AND language_name = 'Original';
|
||||||
|
-- --- END op 2005
|
||||||
|
|
||||||
|
-- --- BEGIN op 2006 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Compact' AND language_name = 'Any';
|
||||||
|
-- --- END op 2006
|
||||||
|
|
||||||
|
-- --- BEGIN op 2007 ( update quality_profile "1080p Compact" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Compact' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Compact', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
);
|
||||||
|
-- --- END op 2007
|
||||||
|
|
||||||
|
-- --- BEGIN op 2008 ( update quality_profile "1080p Balanced" )
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Balanced', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
);
|
||||||
|
-- --- END op 2008
|
||||||
|
|
||||||
|
-- --- BEGIN op 2009 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Efficient' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Efficient', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
);
|
||||||
|
-- --- END op 2009
|
||||||
|
|
||||||
|
-- --- BEGIN op 2010 ( update quality_profile "1080p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Efficient' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Efficient', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
);
|
||||||
|
-- --- END op 2010
|
||||||
|
|
||||||
|
-- --- BEGIN op 2011 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2011
|
||||||
|
|
||||||
|
-- --- BEGIN op 2012 ( update quality_profile "1080p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2012
|
||||||
|
|
||||||
|
-- --- BEGIN op 2013 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality HDR' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality HDR', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
);
|
||||||
|
-- --- END op 2013
|
||||||
|
|
||||||
|
-- --- BEGIN op 2014 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality HDR' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality HDR', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
);
|
||||||
|
-- --- END op 2014
|
||||||
|
|
||||||
|
-- --- BEGIN op 2015 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality HDR' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality HDR', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
);
|
||||||
|
-- --- END op 2015
|
||||||
|
|
||||||
|
-- --- BEGIN op 2016 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Quality HDR' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Quality HDR', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
);
|
||||||
|
-- --- END op 2016
|
||||||
|
|
||||||
|
-- --- BEGIN op 2017 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Remux' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Remux', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
);
|
||||||
|
-- --- END op 2017
|
||||||
|
|
||||||
|
-- --- BEGIN op 2018 ( update quality_profile "1080p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '1080p Remux' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '1080p Remux', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
);
|
||||||
|
-- --- END op 2018
|
||||||
|
|
||||||
|
-- --- BEGIN op 2019 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Balanced' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Balanced', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
);
|
||||||
|
-- --- END op 2019
|
||||||
|
|
||||||
|
-- --- BEGIN op 2020 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Balanced' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Balanced', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
);
|
||||||
|
-- --- END op 2020
|
||||||
|
|
||||||
|
-- --- BEGIN op 2021 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Efficient' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Efficient', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
);
|
||||||
|
-- --- END op 2021
|
||||||
|
|
||||||
|
-- --- BEGIN op 2022 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Efficient' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Efficient', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
);
|
||||||
|
-- --- END op 2022
|
||||||
|
|
||||||
|
-- --- BEGIN op 2023 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Quality' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Quality', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2023
|
||||||
|
|
||||||
|
-- --- BEGIN op 2024 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Quality' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2024
|
||||||
|
|
||||||
|
-- --- BEGIN op 2025 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Remux' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Remux', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
);
|
||||||
|
-- --- END op 2025
|
||||||
|
|
||||||
|
-- --- BEGIN op 2026 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '2160p Remux' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '2160p Remux', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
);
|
||||||
|
-- --- END op 2026
|
||||||
|
|
||||||
|
-- --- BEGIN op 2027 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '720p Quality' AND language_name = 'Any';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '720p Quality', 'Original', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2027
|
||||||
|
|
||||||
|
-- --- BEGIN op 2028 ( update quality_profile "720p Quality" )
|
||||||
|
DELETE FROM quality_profile_languages WHERE quality_profile_name = '720p Quality' AND language_name = 'Original';
|
||||||
|
|
||||||
|
INSERT INTO quality_profile_languages (quality_profile_name, language_name, type)
|
||||||
|
SELECT '720p Quality', 'Any', 'simple'
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_languages
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
);
|
||||||
|
-- --- END op 2028
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Remove RARBG from 265 Profile Ban and add to Compact TV Trash Tiers
|
||||||
|
-- @exportedAt: 2026-02-12T14:48:59.791Z
|
||||||
|
-- @opIds: 87, 88, 89
|
||||||
|
|
||||||
|
-- --- BEGIN op 87 ( update custom_format "Banned Groups (Efficient)" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Banned Groups (Efficient)'
|
||||||
|
AND name = 'RARBG'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 87
|
||||||
|
|
||||||
|
-- --- BEGIN op 88 ( update custom_format "1080p Compact TV Trash Tier 1" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('1080p Compact TV Trash Tier 1', 'RARBG', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Compact TV Trash Tier 1', 'RARBG', 'RARBG');
|
||||||
|
-- --- END op 88
|
||||||
|
|
||||||
|
-- --- BEGIN op 89 ( update custom_format "1080p Compact TV Trash Tier 2" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('1080p Compact TV Trash Tier 2', 'RARBG', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('1080p Compact TV Trash Tier 2', 'RARBG', 'RARBG');
|
||||||
|
-- --- END op 89
|
||||||
9
ops/49.add-bluespots-to-qxr-regex.sql
Normal file
9
ops/49.add-bluespots-to-qxr-regex.sql
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add Bluespots to QxR Regex
|
||||||
|
-- @exportedAt: 2026-02-12T14:54:36.723Z
|
||||||
|
-- @opIds: 91
|
||||||
|
|
||||||
|
-- --- BEGIN op 91 ( update regular_expression "QxR" )
|
||||||
|
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])(QxR|afm72|Bandi|Bluespots|Celdra|FreetheFish|Garshasp|Ghost|Ime|Kappa|Langbard|LION|Panda|MONOLITH|Natty|r00t|RCVR|RZeroX|SAMPA|Silence|t3nzin|Tigole|YOGI)\b' where "name" = 'QxR' and "pattern" = '(?<=^|[\s.-])(QxR|afm72|Bandi|Celdra|FreetheFish|Garshasp|Ghost|Ime|Kappa|Langbard|LION|Panda|MONOLITH|Natty|r00t|RCVR|RZeroX|SAMPA|Silence|t3nzin|Tigole|YOGI)\b';
|
||||||
|
-- --- END op 91
|
||||||
21
ops/50.create-sev-group-regex.sql
Normal file
21
ops/50.create-sev-group-regex.sql
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Create SEV Group Regex
|
||||||
|
-- @exportedAt: 2026-02-15T22:10:45.323Z
|
||||||
|
-- @opIds: 97, 98
|
||||||
|
|
||||||
|
-- --- BEGIN op 97 ( create regular_expression "SEV" )
|
||||||
|
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('SEV', '(?<=^|[\s.-])(QxR|afm72|Bandi|Bluespots|Celdra|FreetheFish|Garshasp|Ghost|Ime|Kappa|Langbard|LION|Panda|MONOLITH|Natty|r00t|RCVR|RZeroX|SAMPA|Silence|t3nzin|Tigole|YOGI)\b', NULL, NULL);
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('HEVC') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('SEV', 'HEVC');
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('SEV', 'Release Group');
|
||||||
|
-- --- END op 97
|
||||||
|
|
||||||
|
-- --- BEGIN op 98 ( update regular_expression "SEV" )
|
||||||
|
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])(SEV|D0ct0rLew|Kira)\b' where "name" = 'SEV' and "pattern" = '(?<=^|[\s.-])(QxR|afm72|Bandi|Bluespots|Celdra|FreetheFish|Garshasp|Ghost|Ime|Kappa|Langbard|LION|Panda|MONOLITH|Natty|r00t|RCVR|RZeroX|SAMPA|Silence|t3nzin|Tigole|YOGI)\b';
|
||||||
|
-- --- END op 98
|
||||||
25
ops/51.unban-pirates.sql
Normal file
25
ops/51.unban-pirates.sql
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Unban PiRaTes
|
||||||
|
-- @exportedAt: 2026-02-16T19:52:18.238Z
|
||||||
|
-- @opIds: 100, 101
|
||||||
|
|
||||||
|
-- --- BEGIN op 100 ( update custom_format "Banned Groups" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Banned Groups'
|
||||||
|
AND name = 'PiRaTeS'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 100
|
||||||
|
|
||||||
|
-- --- BEGIN op 101 ( update custom_format "Banned Groups (Efficient)" )
|
||||||
|
DELETE FROM custom_format_conditions
|
||||||
|
WHERE custom_format_name = 'Banned Groups (Efficient)'
|
||||||
|
AND name = 'PiRaTeS'
|
||||||
|
AND type = 'release_group'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND negate = 0
|
||||||
|
AND required = 0;
|
||||||
|
-- --- END op 101
|
||||||
288
ops/52.ban-releases-titled-german-dl.sql
Normal file
288
ops/52.ban-releases-titled-german-dl.sql
Normal file
@@ -0,0 +1,288 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Ban Releases Titled German DL
|
||||||
|
-- @exportedAt: 2026-02-16T20:21:27.239Z
|
||||||
|
-- @opIds: 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130
|
||||||
|
|
||||||
|
-- --- BEGIN op 103 ( create regular_expression "German DL" )
|
||||||
|
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('German DL', '\b(BEN[ ._-]THE[ ._-]MEN)\b', NULL, NULL);
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('German DL', 'Release Group');
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('WEB-DL') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('German DL', 'WEB-DL');
|
||||||
|
-- --- END op 103
|
||||||
|
|
||||||
|
-- --- BEGIN op 104 ( update regular_expression "German DL" )
|
||||||
|
update "regular_expressions" set "pattern" = '\b(GERMAN[ ._-]DL)\b' where "name" = 'German DL' and "pattern" = '\b(BEN[ ._-]THE[ ._-]MEN)\b';
|
||||||
|
-- --- END op 104
|
||||||
|
|
||||||
|
-- --- BEGIN op 105 ( create custom_format "German DL" )
|
||||||
|
insert into "custom_formats" ("name", "description") values ('German DL', '');
|
||||||
|
-- --- END op 105
|
||||||
|
|
||||||
|
-- --- BEGIN op 106 ( update custom_format "German DL" )
|
||||||
|
update "custom_formats" set "description" = 'Releases titled with German DL' where "name" = 'German DL' and "description" = '';
|
||||||
|
-- --- END op 106
|
||||||
|
|
||||||
|
-- --- BEGIN op 107 ( update custom_format "German DL" )
|
||||||
|
insert into "tags" ("name") values ('Banned') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('German DL', 'Banned');
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Enhancement') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('German DL', 'Enhancement');
|
||||||
|
-- --- END op 107
|
||||||
|
|
||||||
|
-- --- BEGIN op 108 ( update custom_format "German DL" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('German DL', 'German DL', 'release_title', 'all', 0, 1);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('German DL', 'German DL', 'German DL');
|
||||||
|
-- --- END op 108
|
||||||
|
|
||||||
|
-- --- BEGIN op 109 ( update quality_profile "1080p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Balanced', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 109
|
||||||
|
|
||||||
|
-- --- BEGIN op 110 ( update quality_profile "1080p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Balanced', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Balanced'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 110
|
||||||
|
|
||||||
|
-- --- BEGIN op 111 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 111
|
||||||
|
|
||||||
|
-- --- BEGIN op 112 ( update quality_profile "1080p Compact" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Compact', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Compact'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 112
|
||||||
|
|
||||||
|
-- --- BEGIN op 113 ( update quality_profile "1080p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Efficient', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 113
|
||||||
|
|
||||||
|
-- --- BEGIN op 114 ( update quality_profile "1080p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Efficient', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Efficient'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 114
|
||||||
|
|
||||||
|
-- --- BEGIN op 115 ( update quality_profile "1080p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 115
|
||||||
|
|
||||||
|
-- --- BEGIN op 116 ( update quality_profile "1080p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 116
|
||||||
|
|
||||||
|
-- --- BEGIN op 117 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality HDR', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 117
|
||||||
|
|
||||||
|
-- --- BEGIN op 118 ( update quality_profile "1080p Quality HDR" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Quality HDR', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Quality HDR'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 118
|
||||||
|
|
||||||
|
-- --- BEGIN op 119 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 119
|
||||||
|
|
||||||
|
-- --- BEGIN op 120 ( update quality_profile "1080p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '1080p Remux', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '1080p Remux'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 120
|
||||||
|
|
||||||
|
-- --- BEGIN op 121 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 121
|
||||||
|
|
||||||
|
-- --- BEGIN op 122 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 122
|
||||||
|
|
||||||
|
-- --- BEGIN op 123 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 123
|
||||||
|
|
||||||
|
-- --- BEGIN op 124 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 124
|
||||||
|
|
||||||
|
-- --- BEGIN op 125 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 125
|
||||||
|
|
||||||
|
-- --- BEGIN op 126 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 126
|
||||||
|
|
||||||
|
-- --- BEGIN op 127 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 127
|
||||||
|
|
||||||
|
-- --- BEGIN op 128 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 128
|
||||||
|
|
||||||
|
-- --- BEGIN op 129 ( update quality_profile "720p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '720p Quality', 'German DL', 'radarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 129
|
||||||
|
|
||||||
|
-- --- BEGIN op 130 ( update quality_profile "720p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '720p Quality', 'German DL', 'sonarr', -999999
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '720p Quality'
|
||||||
|
AND custom_format_name = 'German DL'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 130
|
||||||
9
ops/53.tweak-german-dl-regex-to-match-both-dl-and-ml.sql
Normal file
9
ops/53.tweak-german-dl-regex-to-match-both-dl-and-ml.sql
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Tweak German DL Regex to Match Both DL and ML
|
||||||
|
-- @exportedAt: 2026-02-16T20:27:48.857Z
|
||||||
|
-- @opIds: 132
|
||||||
|
|
||||||
|
-- --- BEGIN op 132 ( update regular_expression "German DL" )
|
||||||
|
update "regular_expressions" set "pattern" = '\b(GERMAN[ ._-][DM]L)\b' where "name" = 'German DL' and "pattern" = '\b(GERMAN[ ._-]DL)\b';
|
||||||
|
-- --- END op 132
|
||||||
13
ops/54.seperate-radarr-sonarr-delay-profiles.sql
Normal file
13
ops/54.seperate-radarr-sonarr-delay-profiles.sql
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Seperate Radarr/Sonarr Delay Profiles
|
||||||
|
-- @exportedAt: 2026-02-17T18:42:50.657Z
|
||||||
|
-- @opIds: 147, 148
|
||||||
|
|
||||||
|
-- --- BEGIN op 147 ( update delay_profile "Radarr" )
|
||||||
|
update "delay_profiles" set "name" = 'Radarr' where "name" = 'Dictionarry';
|
||||||
|
-- --- END op 147
|
||||||
|
|
||||||
|
-- --- BEGIN op 148 ( create delay_profile "Sonarr" )
|
||||||
|
insert into "delay_profiles" ("name", "preferred_protocol", "usenet_delay", "torrent_delay", "bypass_if_highest_quality", "bypass_if_above_custom_format_score", "minimum_custom_format_score") values ('Sonarr', 'prefer_torrent', 300, 300, 0, 0, NULL);
|
||||||
|
-- --- END op 148
|
||||||
1873
ops/55.score-fix.sql
Normal file
1873
ops/55.score-fix.sql
Normal file
File diff suppressed because it is too large
Load Diff
145
ops/56.tweak-streaming-scores-test.sql
Normal file
145
ops/56.tweak-streaming-scores-test.sql
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Tweak Streaming Scores TEST
|
||||||
|
-- @exportedAt: 2026-02-18T17:36:55.345Z
|
||||||
|
-- @opIds: 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375
|
||||||
|
|
||||||
|
-- --- BEGIN op 360 ( update quality_profile "2160p Balanced" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'DSNP'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 360
|
||||||
|
|
||||||
|
-- --- BEGIN op 361 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Disney+ Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -1000;
|
||||||
|
-- --- END op 361
|
||||||
|
|
||||||
|
-- --- BEGIN op 362 ( update quality_profile "2160p Balanced" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'iT'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 362
|
||||||
|
|
||||||
|
-- --- BEGIN op 363 ( update quality_profile "2160p Balanced" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = -2000
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'iTunes Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -3000;
|
||||||
|
-- --- END op 363
|
||||||
|
|
||||||
|
-- --- BEGIN op 364 ( update quality_profile "2160p Efficient" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'DSNP'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 364
|
||||||
|
|
||||||
|
-- --- BEGIN op 365 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Disney+ Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -1000;
|
||||||
|
-- --- END op 365
|
||||||
|
|
||||||
|
-- --- BEGIN op 366 ( update quality_profile "2160p Efficient" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'iT'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 366
|
||||||
|
|
||||||
|
-- --- BEGIN op 367 ( update quality_profile "2160p Efficient" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = -2000
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'iTunes Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -3000;
|
||||||
|
-- --- END op 367
|
||||||
|
|
||||||
|
-- --- BEGIN op 368 ( update quality_profile "2160p Quality" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'DSNP'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 368
|
||||||
|
|
||||||
|
-- --- BEGIN op 369 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Disney+ Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -1000;
|
||||||
|
-- --- END op 369
|
||||||
|
|
||||||
|
-- --- BEGIN op 370 ( update quality_profile "2160p Quality" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'iT'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 370
|
||||||
|
|
||||||
|
-- --- BEGIN op 371 ( update quality_profile "2160p Quality" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = -2000
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'iTunes Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -3000;
|
||||||
|
-- --- END op 371
|
||||||
|
|
||||||
|
-- --- BEGIN op 372 ( update quality_profile "2160p Remux" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'DSNP'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 372
|
||||||
|
|
||||||
|
-- --- BEGIN op 373 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Disney+ Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -1000;
|
||||||
|
-- --- END op 373
|
||||||
|
|
||||||
|
-- --- BEGIN op 374 ( update quality_profile "2160p Remux" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 3000
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'iT'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 4000;
|
||||||
|
-- --- END op 374
|
||||||
|
|
||||||
|
-- --- BEGIN op 375 ( update quality_profile "2160p Remux" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = -2000
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'iTunes Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = -3000;
|
||||||
|
-- --- END op 375
|
||||||
317
ops/57.reduce-amzn-2160p-radarr-score.sql
Normal file
317
ops/57.reduce-amzn-2160p-radarr-score.sql
Normal file
@@ -0,0 +1,317 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Reduce AMZN 2160p Radarr Score
|
||||||
|
-- @exportedAt: 2026-02-19T19:23:59.507Z
|
||||||
|
-- @opIds: 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408
|
||||||
|
|
||||||
|
-- --- BEGIN op 377 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'AMZN', 'radarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 377
|
||||||
|
|
||||||
|
-- --- BEGIN op 378 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'AMZN', 'sonarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 378
|
||||||
|
|
||||||
|
-- --- BEGIN op 379 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 379
|
||||||
|
|
||||||
|
-- --- BEGIN op 380 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'Amazon Enhancement', 'radarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 380
|
||||||
|
|
||||||
|
-- --- BEGIN op 381 ( update quality_profile "2160p Balanced" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Balanced', 'Amazon Enhancement', 'sonarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 381
|
||||||
|
|
||||||
|
-- --- BEGIN op 382 ( update quality_profile "2160p Balanced" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 382
|
||||||
|
|
||||||
|
-- --- BEGIN op 383 ( update quality_profile "2160p Balanced" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 1000
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 383
|
||||||
|
|
||||||
|
-- --- BEGIN op 384 ( update quality_profile "2160p Balanced" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 2000
|
||||||
|
WHERE quality_profile_name = '2160p Balanced'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 384
|
||||||
|
|
||||||
|
-- --- BEGIN op 385 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'AMZN', 'radarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 385
|
||||||
|
|
||||||
|
-- --- BEGIN op 386 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'AMZN', 'sonarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 386
|
||||||
|
|
||||||
|
-- --- BEGIN op 387 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 387
|
||||||
|
|
||||||
|
-- --- BEGIN op 388 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'Amazon Enhancement', 'radarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 388
|
||||||
|
|
||||||
|
-- --- BEGIN op 389 ( update quality_profile "2160p Efficient" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Efficient', 'Amazon Enhancement', 'sonarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 389
|
||||||
|
|
||||||
|
-- --- BEGIN op 390 ( update quality_profile "2160p Efficient" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 390
|
||||||
|
|
||||||
|
-- --- BEGIN op 391 ( update quality_profile "2160p Efficient" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 1000
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 391
|
||||||
|
|
||||||
|
-- --- BEGIN op 392 ( update quality_profile "2160p Efficient" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 2000
|
||||||
|
WHERE quality_profile_name = '2160p Efficient'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 392
|
||||||
|
|
||||||
|
-- --- BEGIN op 393 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'AMZN', 'radarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 393
|
||||||
|
|
||||||
|
-- --- BEGIN op 394 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'AMZN', 'sonarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 394
|
||||||
|
|
||||||
|
-- --- BEGIN op 395 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 395
|
||||||
|
|
||||||
|
-- --- BEGIN op 396 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'Amazon Enhancement', 'radarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 396
|
||||||
|
|
||||||
|
-- --- BEGIN op 397 ( update quality_profile "2160p Quality" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Quality', 'Amazon Enhancement', 'sonarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 397
|
||||||
|
|
||||||
|
-- --- BEGIN op 398 ( update quality_profile "2160p Quality" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 398
|
||||||
|
|
||||||
|
-- --- BEGIN op 399 ( update quality_profile "2160p Quality" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 1000
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 399
|
||||||
|
|
||||||
|
-- --- BEGIN op 400 ( update quality_profile "2160p Quality" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 2000
|
||||||
|
WHERE quality_profile_name = '2160p Quality'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 400
|
||||||
|
|
||||||
|
-- --- BEGIN op 401 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'AMZN', 'radarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 401
|
||||||
|
|
||||||
|
-- --- BEGIN op 402 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'AMZN', 'sonarr', 2000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 402
|
||||||
|
|
||||||
|
-- --- BEGIN op 403 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 403
|
||||||
|
|
||||||
|
-- --- BEGIN op 404 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'Amazon Enhancement', 'radarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
);
|
||||||
|
-- --- END op 404
|
||||||
|
|
||||||
|
-- --- BEGIN op 405 ( update quality_profile "2160p Remux" )
|
||||||
|
INSERT INTO quality_profile_custom_formats (quality_profile_name, custom_format_name, arr_type, score)
|
||||||
|
SELECT '2160p Remux', 'Amazon Enhancement', 'sonarr', 1000
|
||||||
|
WHERE NOT EXISTS (
|
||||||
|
SELECT 1 FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'sonarr'
|
||||||
|
);
|
||||||
|
-- --- END op 405
|
||||||
|
|
||||||
|
-- --- BEGIN op 406 ( update quality_profile "2160p Remux" )
|
||||||
|
DELETE FROM quality_profile_custom_formats
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'all'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 406
|
||||||
|
|
||||||
|
-- --- BEGIN op 407 ( update quality_profile "2160p Remux" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 1000
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'AMZN'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 2000;
|
||||||
|
-- --- END op 407
|
||||||
|
|
||||||
|
-- --- BEGIN op 408 ( update quality_profile "2160p Remux" )
|
||||||
|
UPDATE quality_profile_custom_formats
|
||||||
|
SET score = 2000
|
||||||
|
WHERE quality_profile_name = '2160p Remux'
|
||||||
|
AND custom_format_name = 'Amazon Enhancement'
|
||||||
|
AND arr_type = 'radarr'
|
||||||
|
AND score = 1000;
|
||||||
|
-- --- END op 408
|
||||||
25
ops/58.update-some-codec-regex.sql
Normal file
25
ops/58.update-some-codec-regex.sql
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Update Some Codec Regex
|
||||||
|
-- @exportedAt: 2026-02-20T22:53:02.772Z
|
||||||
|
-- @opIds: 410, 411, 412, 413, 414
|
||||||
|
|
||||||
|
-- --- BEGIN op 410 ( update regular_expression "VVC" )
|
||||||
|
update "regular_expressions" set "pattern" = '[xh][ ._-]?266|\bVVC(\b|\d)' where "name" = 'VVC' and "pattern" = '(?<=^|[\s.-])VVC\b';
|
||||||
|
-- --- END op 410
|
||||||
|
|
||||||
|
-- --- BEGIN op 411 ( update regular_expression "Xvid" )
|
||||||
|
update "regular_expressions" set "pattern" = '\b(Xvid)\b' where "name" = 'Xvid' and "pattern" = '(?i)[-. ]Xvid';
|
||||||
|
-- --- END op 411
|
||||||
|
|
||||||
|
-- --- BEGIN op 412 ( update regular_expression "Remux" )
|
||||||
|
update "regular_expressions" set "pattern" = '\b(Remux)\b' where "name" = 'Remux' and "pattern" = 'Remux';
|
||||||
|
-- --- END op 412
|
||||||
|
|
||||||
|
-- --- BEGIN op 413 ( update regular_expression "h264" )
|
||||||
|
update "regular_expressions" set "pattern" = '[h][ ._-]?264' where "name" = 'h264' and "pattern" = '(?i)h\s*\.?\s*264';
|
||||||
|
-- --- END op 413
|
||||||
|
|
||||||
|
-- --- BEGIN op 414 ( update regular_expression "h265" )
|
||||||
|
update "regular_expressions" set "pattern" = '[h][ ._-]?265' where "name" = 'h265' and "pattern" = '(?i)h\s*\.?\s*265';
|
||||||
|
-- --- END op 414
|
||||||
17
ops/59.update-remaining-codec-cfs.sql
Normal file
17
ops/59.update-remaining-codec-cfs.sql
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Update Remaining Codec CFs
|
||||||
|
-- @exportedAt: 2026-02-20T23:13:31.105Z
|
||||||
|
-- @opIds: 419, 420, 421
|
||||||
|
|
||||||
|
-- --- BEGIN op 419 ( update regular_expression "x265" )
|
||||||
|
update "regular_expressions" set "pattern" = '^(?!.*remux).*([x][ ._-]?265|\bHEVC(\b|\d))' where "name" = 'x265' and "pattern" = '^(?!.*(?i:remux))(?=.*([x]\s?(\.?265)\b|HEVC|\bDS4K\b)).*$';
|
||||||
|
-- --- END op 419
|
||||||
|
|
||||||
|
-- --- BEGIN op 420 ( update regular_expression "x265 (Efficient)" )
|
||||||
|
update "regular_expressions" set "pattern" = '^(?!.*remux).*([xh][ ._-]?265|\bHEVC(\b|\d))' where "name" = 'x265 (Efficient)' and "pattern" = '^(?!.*(?i:remux))(?=.*([xh]\s?(\.?265)\b|HEVC|\bDS4K\b)).*$';
|
||||||
|
-- --- END op 420
|
||||||
|
|
||||||
|
-- --- BEGIN op 421 ( update regular_expression "x264" )
|
||||||
|
update "regular_expressions" set "pattern" = '^(?!.*remux).*[xh][ ._-]?264' where "name" = 'x264' and "pattern" = '^(?!.*(?i:remux)).*([xh](\.?264)|DVDRip)';
|
||||||
|
-- --- END op 421
|
||||||
12
ops/60.add-265-requirement-to-uhd-bluray-cf.sql
Normal file
12
ops/60.add-265-requirement-to-uhd-bluray-cf.sql
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add 265 Requirement to UHD Bluray CF
|
||||||
|
-- @exportedAt: 2026-02-20T23:18:11.359Z
|
||||||
|
-- @opIds: 423
|
||||||
|
|
||||||
|
-- --- BEGIN op 423 ( update custom_format "UHD Bluray" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('UHD Bluray', 'x265', 'release_title', 'all', 0, 1);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('UHD Bluray', 'x265', 'x265');
|
||||||
|
-- --- END op 423
|
||||||
Reference in New Issue
Block a user