From 7a56834afcdaddb6751967ffa6a8c61524e99445 Mon Sep 17 00:00:00 2001 From: zakary Date: Sat, 23 Mar 2024 22:16:43 -0500 Subject: [PATCH] feat(sonarr): Add Season Pack CF using ReleaseType Condition (#1825) Co-authored-by: owine --- .../sonarr-collection-of-custom-formats.md | 33 +++++++++++++++++-- docs/json/sonarr/cf/season-pack-spec.json | 15 +++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 docs/json/sonarr/cf/season-pack-spec.json diff --git a/docs/Sonarr/sonarr-collection-of-custom-formats.md b/docs/Sonarr/sonarr-collection-of-custom-formats.md index a75f6838a..bf84b587a 100644 --- a/docs/Sonarr/sonarr-collection-of-custom-formats.md +++ b/docs/Sonarr/sonarr-collection-of-custom-formats.md @@ -1187,8 +1187,7 @@ We've made 3 guides related to this. - Give it a score of `10` if you prefer a season pack. - Give it a score of `-10000` if you prefer to not download season packs. - - `/\bS\d+\b(?!E\d+\b)/i` season packs are preferred: however, given the folder name is ignored the error/warning/issue occurs as the file names would not be a season pack. - - Keep in mind this is the only way to prefer season packs. If you have preferred words, due to a long standing bug => Preferred Words overrule season pack preference [Sonarr/Sonarr#3562](https://github.com/Sonarr/Sonarr/issues/3562){:target="_blank" rel="noopener noreferrer"} + - `/\bS\d+\b(?!E\d+\b)/i` season packs are preferred: however, given the folder name is ignored the issue occurs as the file names would not be a season pack. !!! danger "WARNING" - This Custom Format could result in a download loop :bangbang: @@ -1204,6 +1203,36 @@ We've made 3 guides related to this. --- +### Season Pack (New "Release Type" Handling, Sonarr v4.0.2.1262+ only) + +!!! danger "WARNING" + + - This CF utilizes functionality only available starting in Sonarr v4.0.2.1262. + - This CF is currently "Guides Only" and does not have a `trash_id` for sync tools. + - This CF is currently "Guides Only" and does not yet have a `trash_id` for sync tools pending ReleaseType being released as stable / Sonarr `main` + +??? question "Season Pack - [Click to show/hide]" + This Custom Format can be used to prefer or exclude season packs + + - Give it a score of `10` if you prefer a season pack. + - Give it a score of `-10000` if you prefer to not download season packs. + - Utilizing the "Release Type" custom format setting added in v4.0.2.1262, Season Pack source status is now persistently stored alongside episodes. + + !!! info + - This Custom Format could previously result in download loops. The new "Release Type" CF now prevents this undesired behavior. :bangbang: + - This Custom Format will replace the current Season Pack Custom Format as a drop in replacement when the functionality reaches a full release version of Sonarr. + - This will upgrade your already downloaded single episodes :bangbang: + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/sonarr/cf/season-pack-spec.json' %]][[% endfilter %]] + ``` + +[TOP](#index) + +--- + ### x265 (no HDR/DV) ??? question "x265 (no HDR/DV) - [Click to show/hide]" diff --git a/docs/json/sonarr/cf/season-pack-spec.json b/docs/json/sonarr/cf/season-pack-spec.json new file mode 100644 index 000000000..048f3061c --- /dev/null +++ b/docs/json/sonarr/cf/season-pack-spec.json @@ -0,0 +1,15 @@ +{ + "name": "Season Pack", + "includeCustomFormatWhenRenaming": false, + "specifications": [ + { + "name": "Season Packs", + "implementation": "ReleaseTypeSpecification", + "negate": false, + "required": false, + "fields": { + "value": 3 + } + } + ] +}