From becf02661641862bd2285ee1894986f6c9217168 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Tue, 19 May 2026 15:22:18 -0500 Subject: [PATCH] Create Unwanted Formats --- ops/22.create-unwanted-formats.sql | 1367 ++++++++++++++++++++++++++++ 1 file changed, 1367 insertions(+) create mode 100644 ops/22.create-unwanted-formats.sql diff --git a/ops/22.create-unwanted-formats.sql b/ops/22.create-unwanted-formats.sql new file mode 100644 index 0000000..e0184a7 --- /dev/null +++ b/ops/22.create-unwanted-formats.sql @@ -0,0 +1,1367 @@ +-- @operation: export +-- @entity: batch +-- @name: Create Unwanted Formats +-- @exportedAt: 2026-05-19T20:22:17.074Z +-- @opIds: 10220, 10221, 10222, 10223, 10224, 10225, 10226, 10227, 10228, 10229, 10230, 10231, 10232, 10233, 10234, 10235, 10236, 10237, 10238, 10239, 10240, 10241, 10242, 10243, 10244, 10245, 10246, 10247, 10248, 10249, 10250, 10251, 10252, 10253, 10254, 10255, 10256, 10257, 10258, 10259, 10260, 10261, 10262, 10263, 10264, 10265, 10266, 10267, 10268, 10269, 10270, 10271, 10272, 10273, 10274, 10275, 10276, 10277, 10278, 10279, 10280, 10281, 10282, 10283, 10284, 10285, 10286, 10287, 10288, 10289, 10290, 10291, 10292, 10293, 10294, 10295, 10296, 10297, 10298, 10299, 10300, 10301, 10302, 10303, 10304, 10305, 10306, 10307, 10308, 10309, 10310, 10311, 10312, 10313, 10314, 10315, 10316, 10317, 10318, 10319, 10320, 10321, 10322, 10323, 10324, 10325, 10326, 10327, 10328, 10329, 10330, 10331, 10332, 10333, 10334, 10335, 10336, 10337, 10338, 10339, 10340, 10341, 10342, 10343, 10344, 10345, 10346, 10347, 10348, 10349, 10350, 10351, 10352, 10353, 10354, 10355, 10356, 10357, 10366, 10367, 10368, 10369, 10370, 10371, 10372, 10373, 10374, 10375, 10376, 10377, 10378, 10379, 10380, 10381, 10382, 10383, 10384, 10385, 10386, 10387, 10388, 10389, 10390, 10391, 10392, 10393, 10394, 10395, 10396, 10397, 10398, 10399, 10400, 10401, 10402, 10403, 10404, 10405, 10406, 10407, 10408, 10409, 10410, 10411, 10412, 10413, 10414, 10415, 10416, 10417, 10418, 10419, 10420, 10421, 10422, 10423, 10424, 10425, 10426, 10427, 10428, 10429, 10430, 10431, 10432, 10433, 10434 + +-- --- BEGIN op 10220 ( 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 10220 + +-- --- BEGIN op 10221 ( 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 10221 + +-- --- BEGIN op 10222 ( 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 10222 + +-- --- BEGIN op 10223 ( 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 10223 + +-- --- BEGIN op 10224 ( 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 10224 + +-- --- BEGIN op 10225 ( 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 10225 + +-- --- BEGIN op 10226 ( 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 10226 + +-- --- BEGIN op 10227 ( 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 10227 + +-- --- BEGIN op 10228 ( update custom_format "Line/Mic Dubbed" ) +insert into "tags" ("name") values ('Unwanted Formats') on conflict ("name") do nothing; + +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Line/Mic Dubbed', 'Unwanted Formats'); +-- --- END op 10228 + +-- --- BEGIN op 10229 ( create regular_expression "alfaHD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('alfaHD', '^(alfaHD.*)$', NULL, NULL); +-- --- END op 10229 + +-- --- BEGIN op 10230 ( create regular_expression "BAT" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BAT', '^(BAT)$', NULL, NULL); +-- --- END op 10230 + +-- --- BEGIN op 10231 ( create regular_expression "BiOMA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BiOMA', '^(BiOMA)$', NULL, NULL); +-- --- END op 10231 + +-- --- BEGIN op 10232 ( create regular_expression "BlackBit" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BlackBit', '^(BlackBit)$', NULL, NULL); +-- --- END op 10232 + +-- --- BEGIN op 10233 ( create regular_expression "BNd" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BNd', '^(BNd)$', NULL, NULL); +-- --- END op 10233 + +-- --- BEGIN op 10234 ( 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 10234 + +-- --- BEGIN op 10235 ( create regular_expression "Cory" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Cory', '^(Cory)$', NULL, NULL); +-- --- END op 10235 + +-- --- BEGIN op 10236 ( create regular_expression "EniaHD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('EniaHD', '^(EniaHD)$', NULL, NULL); +-- --- END op 10236 + +-- --- BEGIN op 10237 ( create regular_expression "EXTREME" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('EXTREME', '^(EXTREME)$', NULL, NULL); +-- --- END op 10237 + +-- --- BEGIN op 10238 ( create regular_expression "FF" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('FF', '^(FF)$', NULL, NULL); +-- --- END op 10238 + +-- --- BEGIN op 10239 ( create regular_expression "FOXX" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('FOXX', '^(FOXX)$', NULL, NULL); +-- --- END op 10239 + +-- --- BEGIN op 10240 ( create regular_expression "G4RiS" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('G4RiS', '^(G4RiS)$', NULL, NULL); +-- --- END op 10240 + +-- --- BEGIN op 10241 ( create regular_expression "GUEIRA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('GUEIRA', '^(GUEIRA)$', NULL, NULL); +-- --- END op 10241 + +-- --- BEGIN op 10242 ( create regular_expression "LCD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('LCD', '^(LCD)$', NULL, NULL); +-- --- END op 10242 + +-- --- BEGIN op 10243 ( create regular_expression "N3G4N" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('N3G4N', '^(N3G4N)$', NULL, NULL); +-- --- END op 10243 + +-- --- BEGIN op 10244 ( create regular_expression "PD" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('PD', '^(PD)$', NULL, NULL); +-- --- END op 10244 + +-- --- BEGIN op 10245 ( create regular_expression "PTHome" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('PTHome', '^(PTHome)$', NULL, NULL); +-- --- END op 10245 + +-- --- BEGIN op 10246 ( create regular_expression "RiPER" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('RiPER', '^(RiPER)$', NULL, NULL); +-- --- END op 10246 + +-- --- BEGIN op 10247 ( create regular_expression "RK" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('RK', '^(RK)$', NULL, NULL); +-- --- END op 10247 + +-- --- BEGIN op 10248 ( create regular_expression "SiGLA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('SiGLA', '^(SiGLA)$', NULL, NULL); +-- --- END op 10248 + +-- --- BEGIN op 10249 ( create regular_expression "Tars" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Tars', '^(Tars)$', NULL, NULL); +-- --- END op 10249 + +-- --- BEGIN op 10250 ( create regular_expression "tokar86a" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('tokar86a', '^(tokar86a)$', NULL, NULL); +-- --- END op 10250 + +-- --- BEGIN op 10251 ( create regular_expression "TURG" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TURG', '^(TURG)$', NULL, NULL); +-- --- END op 10251 + +-- --- BEGIN op 10252 ( create regular_expression "vnlls" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('vnlls', '^(vnlls)$', NULL, NULL); +-- --- END op 10252 + +-- --- BEGIN op 10253 ( create regular_expression "WTV" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('WTV', '^(WTV)$', NULL, NULL); +-- --- END op 10253 + +-- --- BEGIN op 10254 ( create regular_expression "Yatogam1" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Yatogam1', '^(Yatogam1)$', NULL, NULL); +-- --- END op 10254 + +-- --- BEGIN op 10255 ( create regular_expression "YusukeFLA" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('YusukeFLA', '^(YusukeFLA)$', NULL, NULL); +-- --- END op 10255 + +-- --- BEGIN op 10256 ( create regular_expression "ZigZag" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('ZigZag', '^(ZigZag)$', NULL, NULL); +-- --- END op 10256 + +-- --- BEGIN op 10257 ( create regular_expression "ZNM" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('ZNM', '^(ZNM)$', NULL, NULL); +-- --- END op 10257 + +-- --- BEGIN op 10258 ( create regular_expression "ONLYMOViE" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('ONLYMOViE', '^(ONLYMOViE)$', NULL, NULL); +-- --- END op 10258 + +-- --- BEGIN op 10259 ( create regular_expression "TM" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('TM', '^(TM\\b)$', NULL, NULL); +-- --- END op 10259 + +-- --- BEGIN op 10260 ( create custom_format "Bad Dual Groups" ) +insert into "custom_formats" ("name", "description") values ('Bad Dual Groups', ''); +-- --- END op 10260 + +-- --- BEGIN op 10261 ( 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 10261 + +-- --- BEGIN op 10262 ( 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 10262 + +-- --- BEGIN op 10263 ( 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', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'alfaHD', 'alfaHD'); +-- --- END op 10263 + +-- --- BEGIN op 10264 ( 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', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'BAT', 'BAT'); +-- --- END op 10264 + +-- --- BEGIN op 10265 ( 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 10265 + +-- --- BEGIN op 10266 ( 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 10266 + +-- --- BEGIN op 10267 ( 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 10267 + +-- --- BEGIN op 10268 ( 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 10268 + +-- --- BEGIN op 10269 ( 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 10269 + +-- --- BEGIN op 10270 ( 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 10270 + +-- --- BEGIN op 10271 ( 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 10271 + +-- --- BEGIN op 10272 ( 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 10272 + +-- --- BEGIN op 10273 ( 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 10273 + +-- --- BEGIN op 10274 ( 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 10274 + +-- --- BEGIN op 10275 ( 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 10275 + +-- --- BEGIN op 10276 ( 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 10276 + +-- --- BEGIN op 10277 ( 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 10277 + +-- --- BEGIN op 10278 ( 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 10278 + +-- --- BEGIN op 10279 ( 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 10279 + +-- --- BEGIN op 10280 ( 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_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'PTHome', 'PTHome'); +-- --- END op 10280 + +-- --- BEGIN op 10281 ( 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_group', 'radarr', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Bad Dual Groups', 'RiPER', 'RiPER'); +-- --- END op 10281 + +-- --- BEGIN op 10282 ( 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 10282 + +-- --- BEGIN op 10283 ( 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 10283 + +-- --- BEGIN op 10284 ( 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 10284 + +-- --- BEGIN op 10285 ( 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 10285 + +-- --- BEGIN op 10286 ( 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 10286 + +-- --- BEGIN op 10287 ( 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 10287 + +-- --- BEGIN op 10288 ( 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 10288 + +-- --- BEGIN op 10289 ( 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 10289 + +-- --- BEGIN op 10290 ( 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 10290 + +-- --- BEGIN op 10291 ( 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 10291 + +-- --- BEGIN op 10292 ( 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 10292 + +-- --- BEGIN op 10293 ( 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 10293 + +-- --- BEGIN op 10294 ( 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 10294 + +-- --- BEGIN op 10295 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'alfaHD' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 10295 + +-- --- BEGIN op 10296 ( update custom_format "Bad Dual Groups" ) +UPDATE custom_format_conditions +SET arr_type = 'all' +WHERE custom_format_name = 'Bad Dual Groups' + AND name = 'BAT' + AND type = 'release_group' + AND arr_type = 'radarr' + AND negate = 0 + AND required = 0; +-- --- END op 10296 + +-- --- BEGIN op 10297 ( 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 10297 + +-- --- BEGIN op 10298 ( 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 10298 + +-- --- BEGIN op 10299 ( 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 10299 + +-- --- BEGIN op 10300 ( 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 10300 + +-- --- BEGIN op 10301 ( 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 10301 + +-- --- BEGIN op 10302 ( 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 10302 + +-- --- BEGIN op 10303 ( 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 10303 + +-- --- BEGIN op 10304 ( 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 10304 + +-- --- BEGIN op 10305 ( 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 10305 + +-- --- BEGIN op 10306 ( 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 10306 + +-- --- BEGIN op 10307 ( 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 10307 + +-- --- BEGIN op 10308 ( 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 10308 + +-- --- BEGIN op 10309 ( 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 10309 + +-- --- BEGIN op 10310 ( 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 10310 + +-- --- BEGIN op 10311 ( 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 10311 + +-- --- BEGIN op 10312 ( 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 10312 + +-- --- BEGIN op 10313 ( 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 10313 + +-- --- BEGIN op 10314 ( 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 10314 + +-- --- BEGIN op 10315 ( 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 10315 + +-- --- BEGIN op 10316 ( 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 10316 + +-- --- BEGIN op 10317 ( 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 10317 + +-- --- BEGIN op 10318 ( 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 10318 + +-- --- BEGIN op 10319 ( 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 10319 + +-- --- BEGIN op 10320 ( 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 10320 + +-- --- BEGIN op 10321 ( 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 10321 + +-- --- BEGIN op 10322 ( 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 10322 + +-- --- BEGIN op 10323 ( 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 10323 + +-- --- BEGIN op 10324 ( create regular_expression "BR-DISK (BTN)" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BR-DISK (BTN)', '^(?!.*\b((?