mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2026-03-15 09:30:08 -04:00
Ban Releases Titled German DL
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user