From 0d8907ad45f89e3c1599f831edbe6647e059ce68 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Sat, 21 Dec 2024 11:13:30 +0100 Subject: [PATCH] feat(starr): Added language Custom Formats (#2159) * feat(starr): Added language Custom Formats * fixed: table formatting * fixed: table formatting to be consistent * Updated: the German parts to be consistent with the new German Guide * Added: colon to be more consist with the naming --- .../Radarr-collection-of-custom-formats.md | 76 +++++++++++++++---- .../sonarr-collection-of-custom-formats.md | 76 +++++++++++++++---- docs/json/radarr/cf/germandl.json | 30 ++++++++ docs/json/radarr/cf/language-not-english.json | 20 +++++ docs/json/radarr/cf/language-not-french.json | 1 + .../json/radarr/cf/language-not-original.json | 1 + docs/json/sonarr/cf/germandl.json | 30 ++++++++ docs/json/sonarr/cf/language-not-english.json | 20 +++++ docs/json/sonarr/cf/language-not-french.json | 1 + .../json/sonarr/cf/language-not-original.json | 1 + includes/cf-descriptions/language-germandl.md | 6 ++ .../cf-descriptions/language-not-english.md | 5 ++ .../cf-descriptions/language-not-french.md | 5 ++ .../cf-descriptions/language-not-original.md | 5 ++ 14 files changed, 249 insertions(+), 28 deletions(-) create mode 100644 docs/json/radarr/cf/germandl.json create mode 100644 docs/json/radarr/cf/language-not-english.json create mode 100644 docs/json/sonarr/cf/germandl.json create mode 100644 docs/json/sonarr/cf/language-not-english.json create mode 100644 includes/cf-descriptions/language-germandl.md create mode 100644 includes/cf-descriptions/language-not-english.md create mode 100644 includes/cf-descriptions/language-not-french.md create mode 100644 includes/cf-descriptions/language-not-original.md diff --git a/docs/Radarr/Radarr-collection-of-custom-formats.md b/docs/Radarr/Radarr-collection-of-custom-formats.md index 0943d62061..8bdefc4a0c 100644 --- a/docs/Radarr/Radarr-collection-of-custom-formats.md +++ b/docs/Radarr/Radarr-collection-of-custom-formats.md @@ -85,7 +85,7 @@ We've made 3 guides related to this. | [Stan](#stan) | | | | UK Streaming Services | Misc Streaming Services | Anime Streaming Services | -|-----------------------|-------------------------|--------------------------| +| --------------------- | ----------------------- | ------------------------ | | [BBC iPlayer](#ip) | [AUBC](#aubc) | [VRV](#vrv) | | [ITVX](#itvx) | [CBC](#cbc) | | | [MY5](#my5) | [Crave](#crav) | | @@ -96,7 +96,7 @@ We've made 3 guides related to this. --- | Miscellaneous | French Audio Version | French Source Groups | -|----------------------------------------|----------------------|-------------------------------------------------| +| -------------------------------------- | -------------------- | ----------------------------------------------- | | [Bad Dual Groups](#bad-dual-groups) | [VFF](#vff) | [FR Remux Tier 01](#fr-remux-tier-01) | | [DV (Disk)](#dv-disk) | [VOF](#vof) | [FR Remux Tier 02](#fr-remux-tier-02) | | [DV (WEBDL)](#dv-webdl) | [VFI](#vfi) | [FR UHD Bluray Tier 01](#fr-uhd-bluray-tier-01) | @@ -139,6 +139,18 @@ We've made 3 guides related to this. | [Anime BD Tier 07 (P2P/Scene)](#anime-bd-tier-07-p2pscene) | [Anime Raws](#anime-raws) | | | | [Anime BD Tier 08 (Mini Encodes)](#anime-bd-tier-08-mini-encodes) | [Anime LQ Groups](#anime-lq-groups) | | | +--- + +| Language profiles | +| ---------------------------------------------------------------- | +| [Language: German.DL](#language-germandl) | +| [Language: Not English (English Only)](#language-not-english) | +| [Language: Not French (French Only)](#language-not-french) | +| [Language: Not Original (Original Only)](#language-not-original) | +| [Language: Original French](#language-original-french) | + +--- + ## Audio Advanced --- @@ -3181,17 +3193,17 @@ We've made 3 guides related to this. --- -## Language Profile +## Language Profiles --- -### Language Not French +### Language: Not French -Language Not French +Language: French Only -??? question "Language Not French - [Click to show/hide]" +??? question "Language: Not French - [Click to show/hide]" - Language Specification is Not French + {! include-markdown "../../includes/cf-descriptions/language-not-french.md" !} ??? example "JSON - [Click to show/hide]" @@ -3203,13 +3215,13 @@ We've made 3 guides related to this. --- -### Language Not Original +### Language: Not Original -Language Not Original +Language: Original Only -??? question "Language Not Original - [Click to show/hide]" +??? question "Language: Not Original - [Click to show/hide]" - Language Specification is Not Original + {! include-markdown "../../includes/cf-descriptions/language-not-original.md" !} ??? example "JSON - [Click to show/hide]" @@ -3221,11 +3233,11 @@ We've made 3 guides related to this. --- -### Language Original French +### Language: Original French -Language Original + French +Language: Original + French -??? question "Language Original + French - [Click to show/hide]" +??? question "Language: Original + French - [Click to show/hide]" Language Specification Original + French @@ -3236,3 +3248,39 @@ We've made 3 guides related to this. ``` [TOP](#index) + +--- + +### Language: Not English + +Language: English Only + +??? question "Language: Not English - [Click to show/hide]" + + {! include-markdown "../../includes/cf-descriptions/language-not-english.md" !} + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/radarr/cf/language-not-english.json' %]][[% endfilter %]] + ``` + +[TOP](#index) + +--- + +### Language: German.DL + +Language: German + Original + +??? question "Language: German.DL - [Click to show/hide]" + + {! include-markdown "../../includes/cf-descriptions/language-germandl.md" !} + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/radarr/cf/germandl.json' %]][[% endfilter %]] + ``` + +[TOP](#index) diff --git a/docs/Sonarr/sonarr-collection-of-custom-formats.md b/docs/Sonarr/sonarr-collection-of-custom-formats.md index dca0628a3c..8cc2db828c 100644 --- a/docs/Sonarr/sonarr-collection-of-custom-formats.md +++ b/docs/Sonarr/sonarr-collection-of-custom-formats.md @@ -79,7 +79,7 @@ We've made 3 guides related to this. | [Syfy](#syfy) | | | | | UK Streaming Services | Misc Streaming Services | Anime Streaming Services | Optional Streaming Services | -|-----------------------|-------------------------|--------------------------|---------------------------------------------| +| --------------------- | ----------------------- | ------------------------ | ------------------------------------------- | | [4OD](#4od) | [AUBC](#aubc) | [ABEMA](#abema) | [UHD Streaming Boost](#uhd-streaming-boost) | | [ALL4](#all4) | [CBC](#cbc) | [ADN](#adn) | [UHD Streaming Cut](#uhd-streaming-cut) | | [BBC iPlayer](#ip) | [Crave](#crav) | [B-Global](#b-global) | | @@ -93,7 +93,7 @@ We've made 3 guides related to this. --- | Miscellaneous | French Audio Version | French Source Groups | -|----------------------------------------|----------------------|-----------------------------------------------| +| -------------------------------------- | -------------------- | --------------------------------------------- | | [Bad Dual Groups](#bad-dual-groups) | [VFF](#vff) | [FR Remux Tier 01](#fr-remux-tier-01) | | [DV (Disk)](#dv-disk) | [VOF](#vof) | [FR HD Bluray Tier 01](#fr-hd-bluray-tier-01) | | [DV (WEBDL)](#dv-webdl) | [VFI](#vfi) | [FR WEB Tier 01](#fr-web-tier-01) | @@ -134,6 +134,18 @@ We've made 3 guides related to this. | [Anime BD Tier 07 (P2P/Scene)](#anime-bd-tier-07-p2pscene) | [Anime Raws](#anime-raws) | | | | [Anime BD Tier 08 (Mini Encodes)](#anime-bd-tier-08-mini-encodes) | [Anime LQ Groups](#anime-lq-groups) | | | +--- + +| Language profiles | +| ---------------------------------------------------------------- | +| [Language: German.DL](#language-germandl) | +| [Language: Not English (English Only)](#language-not-english) | +| [Language: Not French (French Only)](#language-not-french) | +| [Language: Not Original (Original Only)](#language-not-original) | +| [Language: Original French](#language-original-french) | + +--- + ## Audio Advanced --- @@ -3264,17 +3276,17 @@ We've made 3 guides related to this. --- -## Language Profile +## Language Profiles --- -### Language Not French +### Language: Not French -Language Not French +Language: French Only -??? question "Language Not French - [Click to show/hide]" +??? question "Language: Not French - [Click to show/hide]" - Language Specification is Not French + {! include-markdown "../../includes/cf-descriptions/language-not-french.md" !} ??? example "JSON - [Click to show/hide]" @@ -3286,13 +3298,13 @@ We've made 3 guides related to this. --- -### Language Not Original +### Language: Not Original -Language Not Original +Language: Original Only -??? question "Language Not Original - [Click to show/hide]" +??? question "Language: Not Original - [Click to show/hide]" - Language Specification is Not Original + {! include-markdown "../../includes/cf-descriptions/language-not-original.md" !} ??? example "JSON - [Click to show/hide]" @@ -3304,11 +3316,11 @@ We've made 3 guides related to this. --- -### Language Original French +### Language: Original French -Language Original + French +Language: Original + French -??? question "Language Original + French - [Click to show/hide]" +??? question "Language: Original + French - [Click to show/hide]" Language Specification Original + French @@ -3319,3 +3331,39 @@ We've made 3 guides related to this. ``` [TOP](#index) + +--- + +### Language: Not English + +Language: English Only + +??? question "Language: Not English - [Click to show/hide]" + + {! include-markdown "../../includes/cf-descriptions/language-not-english.md" !} + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/sonarr/cf/language-not-english.json' %]][[% endfilter %]] + ``` + +[TOP](#index) + +--- + +### Language: German.DL + +Language: German + Original + +??? question "Language: German.DL - [Click to show/hide]" + + {! include-markdown "../../includes/cf-descriptions/language-germandl.md" !} + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/sonarr/cf/germandl.json' %]][[% endfilter %]] + ``` + +[TOP](#index) diff --git a/docs/json/radarr/cf/germandl.json b/docs/json/radarr/cf/germandl.json new file mode 100644 index 0000000000..aa51dabf5f --- /dev/null +++ b/docs/json/radarr/cf/germandl.json @@ -0,0 +1,30 @@ +{ + "trash_id": "f845be10da4f442654c13e1f2c3d6cd5", + "trash_scores": { + "default": -10000, + "german": 10001 + }, + "trash_description": "Language: German + Original aka German.DL: Add this Custom Format with a score of +`10000` if you prefer releases that include `German + Original audio`, Add this Custom Format with a score of +`10000` if you prefer releases that include `German + Original audio`. ", + "name": "German.DL", + "includeCustomFormatWhenRenaming": true, + "specifications": [ + { + "name": "German", + "implementation": "LanguageSpecification", + "negate": false, + "required": true, + "fields": { + "value": 4 + } + }, + { + "name": "Original Language", + "implementation": "LanguageSpecification", + "negate": false, + "required": true, + "fields": { + "value": -2 + } + } + ] +} diff --git a/docs/json/radarr/cf/language-not-english.json b/docs/json/radarr/cf/language-not-english.json new file mode 100644 index 0000000000..40be9343a1 --- /dev/null +++ b/docs/json/radarr/cf/language-not-english.json @@ -0,0 +1,20 @@ +{ + "trash_id": "0dc8aec3bd1c47cd6c40c46ecd27e846", + "trash_scores": { + "default": -10000 + }, + "trash_description": "Language: English Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the English audio a score of -10000.", + "name": "Language: Not English", + "includeCustomFormatWhenRenaming": false, + "specifications": [ + { + "name": "Not English Language", + "implementation": "LanguageSpecification", + "negate": true, + "required": false, + "fields": { + "value": 1 + } + } + ] +} diff --git a/docs/json/radarr/cf/language-not-french.json b/docs/json/radarr/cf/language-not-french.json index 199b118d6b..90c6ecb85d 100644 --- a/docs/json/radarr/cf/language-not-french.json +++ b/docs/json/radarr/cf/language-not-french.json @@ -5,6 +5,7 @@ "french-multi-vo": 0, "french-vostfr": 0 }, + "trash_description": "Language: French Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the French audio a score of -10000.", "name": "Language: Not French", "includeCustomFormatWhenRenaming": false, "specifications": [ diff --git a/docs/json/radarr/cf/language-not-original.json b/docs/json/radarr/cf/language-not-original.json index a0f078a550..499bab7353 100644 --- a/docs/json/radarr/cf/language-not-original.json +++ b/docs/json/radarr/cf/language-not-original.json @@ -6,6 +6,7 @@ "french-multi-vo": -10000, "french-vostfr": -10000 }, + "trash_description": "Language: Original Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the original audio a score of -10000.", "name": "Language: Not Original", "includeCustomFormatWhenRenaming": false, "specifications": [ diff --git a/docs/json/sonarr/cf/germandl.json b/docs/json/sonarr/cf/germandl.json new file mode 100644 index 0000000000..ba01b52ab2 --- /dev/null +++ b/docs/json/sonarr/cf/germandl.json @@ -0,0 +1,30 @@ +{ + "trash_id": "ed51973a811f51985f14e2f6f290e47a", + "trash_scores": { + "default": -10000, + "german": 10001 + }, + "trash_description": "Language: German + Original aka German.DL: Add this Custom Format with a score of +`10000` if you prefer releases that include `German + Original audio`, Add this Custom Format with a score of +`10000` if you prefer releases that include `German + Original audio`. ", + "name": "German.DL", + "includeCustomFormatWhenRenaming": true, + "specifications": [ + { + "name": "German", + "implementation": "LanguageSpecification", + "negate": false, + "required": true, + "fields": { + "value": 4 + } + }, + { + "name": "Original Language", + "implementation": "LanguageSpecification", + "negate": false, + "required": true, + "fields": { + "value": -2 + } + } + ] +} diff --git a/docs/json/sonarr/cf/language-not-english.json b/docs/json/sonarr/cf/language-not-english.json new file mode 100644 index 0000000000..1b2591c4b6 --- /dev/null +++ b/docs/json/sonarr/cf/language-not-english.json @@ -0,0 +1,20 @@ +{ + "trash_id": "69aa1e159f97d860440b04cd6d590c4f", + "trash_scores": { + "default": -10000 + }, + "trash_description": "Language: English Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the English audio a score of -10000.", + "name": "Language: Not English", + "includeCustomFormatWhenRenaming": false, + "specifications": [ + { + "name": "Not English Language", + "implementation": "LanguageSpecification", + "negate": true, + "required": false, + "fields": { + "value": 1 + } + } + ] +} diff --git a/docs/json/sonarr/cf/language-not-french.json b/docs/json/sonarr/cf/language-not-french.json index 31da540518..6a1212cdfd 100644 --- a/docs/json/sonarr/cf/language-not-french.json +++ b/docs/json/sonarr/cf/language-not-french.json @@ -7,6 +7,7 @@ "french-multi-vo": 0, "french-vostfr": 0 }, + "trash_description": "Language: French Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the French audio a score of -10000.", "name": "Language: Not French", "includeCustomFormatWhenRenaming": false, "specifications": [ diff --git a/docs/json/sonarr/cf/language-not-original.json b/docs/json/sonarr/cf/language-not-original.json index fd2cafe253..d63aefc74e 100644 --- a/docs/json/sonarr/cf/language-not-original.json +++ b/docs/json/sonarr/cf/language-not-original.json @@ -8,6 +8,7 @@ "french-multi-vo": -10000, "french-vostfr": -10000 }, + "trash_description": "Language: Original Only: Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the original audio a score of -10000.", "name": "Language: Not Original", "includeCustomFormatWhenRenaming": false, "specifications": [ diff --git a/includes/cf-descriptions/language-germandl.md b/includes/cf-descriptions/language-germandl.md new file mode 100644 index 0000000000..86617c8ec2 --- /dev/null +++ b/includes/cf-descriptions/language-germandl.md @@ -0,0 +1,6 @@ + +**Language: German + Original aka German.DL**
+ +- Add this Custom Format with the default score of `-10000` to prevent getting releases that include `German + Original audio`. +- Add this Custom Format with a score of +`10000` if you prefer releases that include `German + Original audio`. + diff --git a/includes/cf-descriptions/language-not-english.md b/includes/cf-descriptions/language-not-english.md new file mode 100644 index 0000000000..32b03e2691 --- /dev/null +++ b/includes/cf-descriptions/language-not-english.md @@ -0,0 +1,5 @@ + +**Language: Not English (English Only)**
+ +Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the English audio a score of `-10000`. + diff --git a/includes/cf-descriptions/language-not-french.md b/includes/cf-descriptions/language-not-french.md new file mode 100644 index 0000000000..62a0cc518c --- /dev/null +++ b/includes/cf-descriptions/language-not-french.md @@ -0,0 +1,5 @@ + +**Language: Not French (French Only)**
+ +Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the French audio a score of `-10000`. + diff --git a/includes/cf-descriptions/language-not-original.md b/includes/cf-descriptions/language-not-original.md new file mode 100644 index 0000000000..bf616efb31 --- /dev/null +++ b/includes/cf-descriptions/language-not-original.md @@ -0,0 +1,5 @@ + +**Language: Not Original (Original Only)**
+ +Because it uses reverse scoring, and if you use the default scores, it will assign all releases without the original audio a score of `-10000`. +