From 802b02acef103d77ccdd781d09a9b33b2a58acfa Mon Sep 17 00:00:00 2001 From: Seraphys Date: Mon, 18 May 2026 17:53:49 -0500 Subject: [PATCH] Updated Unwanted Formats CFs --- ops/34.updated-unwanted-formats-cfs.sql | 1445 +++++++++++++++++++++++ 1 file changed, 1445 insertions(+) create mode 100644 ops/34.updated-unwanted-formats-cfs.sql diff --git a/ops/34.updated-unwanted-formats-cfs.sql b/ops/34.updated-unwanted-formats-cfs.sql new file mode 100644 index 0000000..fc78680 --- /dev/null +++ b/ops/34.updated-unwanted-formats-cfs.sql @@ -0,0 +1,1445 @@ +-- @operation: export +-- @entity: batch +-- @name: Updated Unwanted Formats CFs +-- @exportedAt: 2026-05-18T22:53:47.663Z +-- @opIds: 9203, 9204, 9337, 9338, 9339, 9340, 9341, 9342, 9343, 9344, 9345, 9346, 9347, 9348, 9349, 9350, 9351, 9352, 9353, 9354, 9355, 9356, 9357, 9358, 9359, 9360, 9361, 9362, 9363, 9364, 9365, 9366, 9367, 9368, 9369, 9370, 9371, 9372, 9373, 9374, 9375, 9376, 9377, 9378, 9379, 9380, 9381, 9382, 9383, 9384, 9385, 9386, 9387, 9388, 9389, 9390, 9391, 9392, 9393, 9394, 9395, 9396, 9397, 9398, 9399, 9400, 9401, 9402, 9403, 9404, 9405, 9406, 9407, 9408, 9409, 9410, 9411, 9412, 9413, 9414, 9415, 9416, 9417, 9418, 9419, 9420, 9421, 9422, 9423, 9424, 9425, 9426, 9427, 9428, 9429, 9430, 9431, 9432, 9433, 9434, 9435, 9436, 9437, 9438, 9439, 9440, 9441, 9442, 9443, 9444, 9445, 9446, 9447, 9448, 9449, 9450, 9451, 9452, 9453, 9454, 9455, 9456, 9457, 9458, 9459, 9460, 9461, 9462, 9463, 9464, 9465, 9466, 9467, 9468, 9469, 9470, 9471, 9472, 9473, 9474, 9475, 9476, 9477, 9478, 9479, 9480, 9481, 9482, 9483, 9484, 9485, 9486, 9487, 9488, 9489, 9490, 9491, 9492, 9493, 9494, 9495, 9496, 9497, 9498, 9499, 9500, 9501, 9502, 9503, 9504, 9505, 9506, 9507, 9508, 9509, 9510, 9511, 9512, 9513, 9514, 9515, 9516, 9517, 9518, 9519, 9520, 9521, 9522, 9523, 9524, 9525, 9526, 9527, 9528, 9529, 9530, 9531, 9532, 9533, 9534, 9535, 9536, 9537, 9538, 9539, 9540, 9541, 9542, 9543, 9544, 9545, 9546, 9547, 9548, 9549, 9550, 9551, 9552, 9553, 9554, 9555, 9556 + +-- --- BEGIN op 9203 ( create regular_expression "EniaHD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('EniaHD', '^(4FR)$', NULL, NULL); +-- --- END op 9203 + +-- --- BEGIN op 9204 ( update regular_expression "EniaHD" ) +update "regular_expressions" set "pattern" = '^(EniaHD)$' where "name" = 'EniaHD' and "pattern" = '^(4FR)$'; +-- --- END op 9204 + +-- --- BEGIN op 9337 ( update custom_format "3D" ) +DELETE FROM custom_format_tags WHERE custom_format_name = '3D' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('3D', 'Unwanted Formats'); +-- --- END op 9337 + +-- --- BEGIN op 9338 ( update custom_format "AV1" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'AV1' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('AV1', 'Unwanted Formats'); +-- --- END op 9338 + +-- --- BEGIN op 9339 ( update custom_format "BR-DISK" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'BR-DISK' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('BR-DISK', 'Unwanted Formats'); +-- --- END op 9339 + +-- --- BEGIN op 9340 ( update custom_format "Extras" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'Extras' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Extras', 'Unwanted Formats'); +-- --- END op 9340 + +-- --- BEGIN op 9341 ( update custom_format "Generated Dynamic HDR" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'Generated Dynamic HDR' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Generated Dynamic HDR', 'Unwanted Formats'); +-- --- END op 9341 + +-- --- BEGIN op 9342 ( update custom_format "LQ" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'LQ' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('LQ', 'Unwanted Formats'); +-- --- END op 9342 + +-- --- BEGIN op 9343 ( update custom_format "LQ (Release Title)" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'LQ (Release Title)' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('LQ (Release Title)', 'Unwanted Formats'); +-- --- END op 9343 + +-- --- BEGIN op 9344 ( update custom_format "Sing-Along Versions" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'Sing-Along Versions' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Sing-Along Versions', 'Unwanted Formats'); +-- --- END op 9344 + +-- --- BEGIN op 9345 ( update custom_format "Upscaled" ) +DELETE FROM custom_format_tags WHERE custom_format_name = 'Upscaled' AND tag_name = 'Unwanted'; + +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Upscaled', 'Unwanted Formats'); +-- --- END op 9345 + +-- --- BEGIN op 9346 ( create regular_expression "alfaHD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('alfaHD', '^(4FR)$', NULL, NULL); +-- --- END op 9346 + +-- --- BEGIN op 9347 ( update regular_expression "alfaHD" ) +update "regular_expressions" set "pattern" = '^(alfaHD.*)$' where "name" = 'alfaHD' and "pattern" = '^(4FR)$'; +-- --- END op 9347 + +-- --- BEGIN op 9348 ( create regular_expression "BAT" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BAT', '^(BAT)$', NULL, NULL); +-- --- END op 9348 + +-- --- BEGIN op 9349 ( create regular_expression "BiOMA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BiOMA', '^(BiOMA)$', NULL, NULL); +-- --- END op 9349 + +-- --- BEGIN op 9350 ( create regular_expression "BlackBit" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BlackBit', '^(BlackBit)$', NULL, NULL); +-- --- END op 9350 + +-- --- BEGIN op 9351 ( create regular_expression "BNd" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BNd', '^(BNd)$', NULL, NULL); +-- --- END op 9351 + +-- --- BEGIN op 9352 ( create regular_expression "C.A.A" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('C.A.A', '^(C\\.A\\.A)$', NULL, NULL); +-- --- END op 9352 + +-- --- BEGIN op 9353 ( create regular_expression "Cory" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Cory', '^(Cory)$', NULL, NULL); +-- --- END op 9353 + +-- --- BEGIN op 9354 ( create regular_expression "EXTREME" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('EXTREME', '^(EXTREME)$', NULL, NULL); +-- --- END op 9354 + +-- --- BEGIN op 9355 ( create regular_expression "FF" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('FF', '^(FF)$', NULL, NULL); +-- --- END op 9355 + +-- --- BEGIN op 9356 ( create regular_expression "FOXX" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('FOXX', '^(FOXX)$', NULL, NULL); +-- --- END op 9356 + +-- --- BEGIN op 9357 ( create regular_expression "G4RiS" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('G4RiS', '^(G4RiS)$', NULL, NULL); +-- --- END op 9357 + +-- --- BEGIN op 9358 ( create regular_expression "GUEIRA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('GUEIRA', '^(GUEIRA)$', NULL, NULL); +-- --- END op 9358 + +-- --- BEGIN op 9359 ( create regular_expression "LCD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('LCD', '^(LCD)$', NULL, NULL); +-- --- END op 9359 + +-- --- BEGIN op 9360 ( create regular_expression "N3G4N" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('N3G4N', '^(N3G4N)$', NULL, NULL); +-- --- END op 9360 + +-- --- BEGIN op 9361 ( create regular_expression "PD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('PD', '^(PD)$', NULL, NULL); +-- --- END op 9361 + +-- --- BEGIN op 9362 ( create regular_expression "PTHome" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('PTHome', '^(PTHome)$', NULL, NULL); +-- --- END op 9362 + +-- --- BEGIN op 9363 ( create regular_expression "RiPER" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('RiPER', '^(RiPER)$', NULL, NULL); +-- --- END op 9363 + +-- --- BEGIN op 9364 ( create regular_expression "RK" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('RK', '^(RK)$', NULL, NULL); +-- --- END op 9364 + +-- --- BEGIN op 9365 ( create regular_expression "SiGLA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('SiGLA', '^(SiGLA)$', NULL, NULL); +-- --- END op 9365 + +-- --- BEGIN op 9366 ( create regular_expression "Tars" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Tars', '^(Tars)$', NULL, NULL); +-- --- END op 9366 + +-- --- BEGIN op 9367 ( create regular_expression "tokar86a" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('tokar86a', '^(tokar86a)$', NULL, NULL); +-- --- END op 9367 + +-- --- BEGIN op 9368 ( create regular_expression "TURG" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TURG', '^(TURG)$', NULL, NULL); +-- --- END op 9368 + +-- --- BEGIN op 9369 ( create regular_expression "vnlls" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('vnlls', '^(vnlls)$', NULL, NULL); +-- --- END op 9369 + +-- --- BEGIN op 9370 ( create regular_expression "WTV" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('WTV', '^(WTV)$', NULL, NULL); +-- --- END op 9370 + +-- --- BEGIN op 9371 ( create regular_expression "Yatogam1" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Yatogam1', '^(Yatogam1)$', NULL, NULL); +-- --- END op 9371 + +-- --- BEGIN op 9372 ( create regular_expression "YusukeFLA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('YusukeFLA', '^(YusukeFLA)$', NULL, NULL); +-- --- END op 9372 + +-- --- BEGIN op 9373 ( create regular_expression "ZigZag" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('ZigZag', '^(ZigZag)$', NULL, NULL); +-- --- END op 9373 + +-- --- BEGIN op 9374 ( create regular_expression "ZNM" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('ZNM', '^(ZNM)$', NULL, NULL); +-- --- END op 9374 + +-- --- BEGIN op 9375 ( create regular_expression "MGE" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('MGE', '^(MGE\\b.*)$', NULL, NULL); +-- --- END op 9375 + +-- --- BEGIN op 9376 ( create regular_expression "TM" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TM', '^(TM\\b)$', NULL, NULL); +-- --- END op 9376 + +-- --- BEGIN op 9377 ( create regular_expression "TvR" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TvR', '^(TvR)$', NULL, NULL); +-- --- END op 9377 + +-- --- BEGIN op 9378 ( create custom_format "Bad Dual Groups" ) +insert into "custom_formats" ("name", "description") values ('Bad Dual Groups', ''); +-- --- END op 9378 + +-- --- BEGIN op 9379 ( update custom_format "Bad Dual Groups" ) +update "custom_formats" set "description" = 'Bad Dual/Multi groups + +These release groups do not use the original language of the media as the first audio track. Since ffprobe relies on the first audio track to determine the primary language of the release, incorrect ordering can lead to parsing issues. This may result in failed imports, misidentified files, or even download loops. To ensure proper handling, the original language should always be the first audio track in the release.' where "name" = 'Bad Dual Groups' and "description" = ''; +-- --- END op 9379 + +-- --- BEGIN op 9380 ( update custom_format "Bad Dual Groups" ) +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +insert into "custom_format_tags" ("custom_format_name", "tag_name") values ('Bad Dual Groups', 'Unwanted Formats'); +-- --- END op 9380 + +-- --- BEGIN op 9381 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'alfaHD', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'alfaHD', 'alfaHD'); +-- --- END op 9381 + +-- --- BEGIN op 9382 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'BAT', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'BAT', 'BAT'); +-- --- END op 9382 + +-- --- BEGIN op 9383 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'BlackBit', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'BlackBit', 'BlackBit'); +-- --- END op 9383 + +-- --- BEGIN op 9384 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'BNd', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'BNd', 'BNd'); +-- --- END op 9384 + +-- --- BEGIN op 9385 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'C.A.A', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'C.A.A', 'C.A.A'); +-- --- END op 9385 + +-- --- BEGIN op 9386 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'Cory', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'Cory', 'Cory'); +-- --- END op 9386 + +-- --- BEGIN op 9387 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'EniaHD', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'EniaHD', 'EniaHD'); +-- --- END op 9387 + +-- --- BEGIN op 9388 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'EXTREME', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'EXTREME', 'EXTREME'); +-- --- END op 9388 + +-- --- BEGIN op 9389 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'FF', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'FF', 'FF'); +-- --- END op 9389 + +-- --- BEGIN op 9390 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'FOXX', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'FOXX', 'FOXX'); +-- --- END op 9390 + +-- --- BEGIN op 9391 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'G4RiS', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'G4RiS', 'G4RiS'); +-- --- END op 9391 + +-- --- BEGIN op 9392 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'GUEIRA', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'GUEIRA', 'GUEIRA'); +-- --- END op 9392 + +-- --- BEGIN op 9393 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'LCD', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'LCD', 'LCD'); +-- --- END op 9393 + +-- --- BEGIN op 9394 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'MGE', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'MGE', 'MGE'); +-- --- END op 9394 + +-- --- BEGIN op 9395 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'N3G4N', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'N3G4N', 'N3G4N'); +-- --- END op 9395 + +-- --- BEGIN op 9396 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'ONLYMOViE', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'ONLYMOViE', 'ONLYMOViE'); +-- --- END op 9396 + +-- --- BEGIN op 9397 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'PD', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'PD', 'PD'); +-- --- END op 9397 + +-- --- BEGIN op 9398 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'PTHome', 'release_title', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'PTHome', 'PTHome'); +-- --- END op 9398 + +-- --- BEGIN op 9399 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'RiPER', 'release_title', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'RiPER', 'RiPER'); +-- --- END op 9399 + +-- --- BEGIN op 9400 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'RK', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'RK', 'RK'); +-- --- END op 9400 + +-- --- BEGIN op 9401 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'SiGLA', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'SiGLA', 'SiGLA'); +-- --- END op 9401 + +-- --- BEGIN op 9402 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'Tars', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'Tars', 'Tars'); +-- --- END op 9402 + +-- --- BEGIN op 9403 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'TM', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'TM', 'TM'); +-- --- END op 9403 + +-- --- BEGIN op 9404 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'tokar86a', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'tokar86a', 'tokar86a'); +-- --- END op 9404 + +-- --- BEGIN op 9405 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'TURG', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'TURG', 'TURG'); +-- --- END op 9405 + +-- --- BEGIN op 9406 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'TvR', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'TvR', 'TvR'); +-- --- END op 9406 + +-- --- BEGIN op 9407 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'vnlls', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'vnlls', 'vnlls'); +-- --- END op 9407 + +-- --- BEGIN op 9408 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'WTV', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'WTV', 'WTV'); +-- --- END op 9408 + +-- --- BEGIN op 9409 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'Yatogam1', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'Yatogam1', 'Yatogam1'); +-- --- END op 9409 + +-- --- BEGIN op 9410 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'YusukeFLA', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'YusukeFLA', 'YusukeFLA'); +-- --- END op 9410 + +-- --- BEGIN op 9411 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'ZigZag', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'ZigZag', 'ZigZag'); +-- --- END op 9411 + +-- --- BEGIN op 9412 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'ZNM', 'release_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'ZNM', 'ZNM'); +-- --- END op 9412 + +-- --- BEGIN op 9413 ( update custom_format "Bad Dual Groups" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('Bad Dual Groups', 'BiOMA', 'release_group', 'sonarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'BiOMA', 'BiOMA'); +-- --- END op 9413 + +-- --- BEGIN op 9414 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET type = 'release_group' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'PTHome' + AND type = 'release_title' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; + +DELETE FROM condition_patterns WHERE custom_format_name = 'Bad Dual Groups' AND condition_name = 'PTHome' AND regular_expression_name = 'PTHome'; + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'PTHome', 'PTHome'); +-- --- END op 9414 + +-- --- BEGIN op 9415 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET type = 'release_group' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'RiPER' + AND type = 'release_title' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; + +DELETE FROM condition_patterns WHERE custom_format_name = 'Bad Dual Groups' AND condition_name = 'RiPER' AND regular_expression_name = 'RiPER'; + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'RiPER', 'RiPER'); +-- --- END op 9415 + +-- --- BEGIN op 9416 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'BlackBit' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9416 + +-- --- BEGIN op 9417 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'BNd' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9417 + +-- --- BEGIN op 9418 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'C.A.A' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9418 + +-- --- BEGIN op 9419 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'Cory' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9419 + +-- --- BEGIN op 9420 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'EniaHD' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9420 + +-- --- BEGIN op 9421 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'EXTREME' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9421 + +-- --- BEGIN op 9422 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'FF' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9422 + +-- --- BEGIN op 9423 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'FOXX' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9423 + +-- --- BEGIN op 9424 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'G4RiS' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9424 + +-- --- BEGIN op 9425 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'GUEIRA' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9425 + +-- --- BEGIN op 9426 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'LCD' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9426 + +-- --- BEGIN op 9427 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'N3G4N' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9427 + +-- --- BEGIN op 9428 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'PD' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9428 + +-- --- BEGIN op 9429 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'PTHome' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9429 + +-- --- BEGIN op 9430 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'RiPER' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9430 + +-- --- BEGIN op 9431 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'RK' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9431 + +-- --- BEGIN op 9432 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'SiGLA' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9432 + +-- --- BEGIN op 9433 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'Tars' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9433 + +-- --- BEGIN op 9434 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'tokar86a' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9434 + +-- --- BEGIN op 9435 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'TURG' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9435 + +-- --- BEGIN op 9436 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'vnlls' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9436 + +-- --- BEGIN op 9437 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'WTV' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9437 + +-- --- BEGIN op 9438 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'Yatogam1' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9438 + +-- --- BEGIN op 9439 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'YusukeFLA' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9439 + +-- --- BEGIN op 9440 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'ZigZag' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9440 + +-- --- BEGIN op 9441 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'ZNM' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 9441 + +-- --- BEGIN op 9442 ( create regular_expression "BR-DISK (BTN)" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BR-DISK (BTN)', '^(?!.*\b((?