From aba057a8c9085eba2e6e1cd466bfb59e166e7f13 Mon Sep 17 00:00:00 2001 From: Samuel Chau Date: Fri, 19 Jan 2024 13:39:04 +1030 Subject: [PATCH] v0.1.2 - option to choose what app export is "using". Allows similar profiles, custom formats for both apps to exist at the same time. - added many release groups. Mostly TV related - fixed some outlier issues with Radarr profiles - added v0.1 Transparent and Optimal profiles for Sonarr - updated custom formats to work with either / radarr sonarr --- .../{cf.json => radarr_custom_formats.json} | 184 +- custom_formats/sonarr_custom_formats.json | 10390 ++++++++++++++++ export.py | 32 +- .../{Optimal.json => Optimal (Radarr).json} | 7 +- ...HD Fallback.json => Optimal (Sonarr).json} | 1218 +- ...sparent.json => Transparent (Radarr).json} | 5 + profiles/Transparent (Sonarr).json | 57 +- profiles/Transparent - Remux Fallback.json | 1015 -- 8 files changed, 11191 insertions(+), 1717 deletions(-) rename custom_formats/{cf.json => radarr_custom_formats.json} (98%) create mode 100644 custom_formats/sonarr_custom_formats.json rename profiles/{Optimal.json => Optimal (Radarr).json} (99%) rename profiles/{Transparent - HD Fallback.json => Optimal (Sonarr).json} (56%) rename profiles/{Transparent.json => Transparent (Radarr).json} (99%) delete mode 100644 profiles/Transparent - Remux Fallback.json diff --git a/custom_formats/cf.json b/custom_formats/radarr_custom_formats.json similarity index 98% rename from custom_formats/cf.json rename to custom_formats/radarr_custom_formats.json index 0136fda..673298e 100644 --- a/custom_formats/cf.json +++ b/custom_formats/radarr_custom_formats.json @@ -2384,6 +2384,27 @@ "isFloat": false } ] + }, + { + "name": "x264", + "implementation": "ReleaseTitleSpecification", + "implementationName": "Release Title", + "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", + "negate": false, + "required": true, + "fields": [ + { + "order": 0, + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "^(?!.*(?i:remux)).*([xh](\\.?264)|DVDRip)", + "type": "textbox", + "advanced": false, + "privacy": "normal", + "isFloat": false + } + ] } ] }, @@ -4807,7 +4828,7 @@ "name": "value", "label": "Regular Expression", "helpText": "Custom Format RegEx is Case Insensitive", - "value": "^(?!.*(?i:remux)).*([xh](\\.?265)|HEVC)", + "value": "^(?!.*(?i:remux)).*([x]\\s?(\\.?265))", "type": "textbox", "advanced": false, "privacy": "normal", @@ -6866,36 +6887,44 @@ ] }, { - "name": "size", - "implementation": "SizeSpecification", - "implementationName": "Size", + "name": "FLUX: FLUX", + "implementation": "ReleaseGroupSpecification", + "implementationName": "Release Group", "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", - "negate": false, - "required": false, + "negate": true, + "required": true, "fields": [ { "order": 0, - "name": "min", - "label": "Minimum Size", - "unit": "GB", - "helpText": "Release must be greater than this size", - "value": 999, - "type": "number", + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "(?<=^|[\\s.-])FLUX\\b", + "type": "textbox", "advanced": false, "privacy": "normal", - "isFloat": true - }, + "isFloat": false + } + ] + }, + { + "name": "playBD", + "implementation": "ReleaseGroupSpecification", + "implementationName": "Release Group", + "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", + "negate": true, + "required": true, + "fields": [ { - "order": 1, - "name": "max", - "label": "Maximum Size", - "unit": "GB", - "helpText": "Release must be less than or equal to this size", - "value": 1000, - "type": "number", + "order": 0, + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "(?<=^|[\\s.-])playBD\\b", + "type": "textbox", "advanced": false, "privacy": "normal", - "isFloat": true + "isFloat": false } ] } @@ -11660,6 +11689,27 @@ "isFloat": false } ] + }, + { + "name": "10bit", + "implementation": "ReleaseTitleSpecification", + "implementationName": "Release Title", + "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", + "negate": false, + "required": false, + "fields": [ + { + "order": 0, + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "10bit", + "type": "textbox", + "advanced": false, + "privacy": "normal", + "isFloat": false + } + ] } ] }, @@ -11814,5 +11864,95 @@ ] } ] + }, + { + "name": "h265", + "includeCustomFormatWhenRenaming": false, + "specifications": [ + { + "name": "h265", + "implementation": "ReleaseTitleSpecification", + "implementationName": "Release Title", + "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", + "negate": false, + "required": true, + "fields": [ + { + "order": 0, + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "^(?!.*(?i:remux)).*([h]\\s?(\\.?265))", + "type": "textbox", + "advanced": false, + "privacy": "normal", + "isFloat": false + } + ] + }, + { + "name": "Disc", + "implementation": "ReleaseTitleSpecification", + "implementationName": "Release Title", + "infoLink": "https://wiki.servarr.com/radarr/settings#custom-formats-2", + "negate": true, + "required": true, + "fields": [ + { + "order": 0, + "name": "value", + "label": "Regular Expression", + "helpText": "Custom Format RegEx is Case Insensitive", + "value": "^(?!.*\\b((?