From 5189787558cc97f286fe68edcd92d1db22e65013 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Wed, 11 Jan 2023 19:00:30 +0100 Subject: [PATCH] switched to json --- .../How-to-setup-language-custom-formats.md | 166 +++++------------- 1 file changed, 48 insertions(+), 118 deletions(-) diff --git a/docs/Radarr/Tips/How-to-setup-language-custom-formats.md b/docs/Radarr/Tips/How-to-setup-language-custom-formats.md index 4ad692474..7d2ba67f1 100644 --- a/docs/Radarr/Tips/How-to-setup-language-custom-formats.md +++ b/docs/Radarr/Tips/How-to-setup-language-custom-formats.md @@ -4,6 +4,14 @@ Here we will try to explain how to setup your own preferred language Custom Form ## Language Examples +Import the JSON in to your Custom Formats. + +How ? + +Follow the [How to import Custom Formats](/Radarr/Radarr-import-custom-formats/){:target="_blank" rel="noopener noreferrer"}. + +--- + ### Language: Original Only Language: Not Original @@ -19,24 +27,11 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`. ??? example "JSON - [CLICK TO EXPAND]" ```json - { - "trash_score": "-10000", - "name": "Language: Not Original", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "Not Original Language", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": -2 - } - } - ] - } + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-original.json' %]][[% endfilter %]] ``` +--- + ### Language: English Only Language: Not English @@ -52,25 +47,11 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`. ??? example "JSON - [CLICK TO EXPAND]" ```json - { - "trash_score": "-10000", - "trash_description": "Language: English Only", - "name": "Language: Not English", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "Not English Language", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": 1 - } - } - ] - } + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-english.json' %]][[% endfilter %]] ``` +--- + ### Language: Multiple Only Language: Not Dutch @@ -90,36 +71,14 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`. ??? example "JSON - [CLICK TO EXPAND]" ```json - { - "trash_score": "-10000", - "name": "Language: Not Dutch", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "Not Dutch Language", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": 7 - } - }, - { - "name": "Not Flemish Language", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": 19 - } - } - ] - } + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-dutch.json' %]][[% endfilter %]] ``` +--- + ### Language: Prefer X but i'll take Y -Language: Not German or Original +Language: Not Original or German Language: Prefer German Let's say you want German, but you take the Original language if no German is available, but don't want any other translated languages. @@ -130,57 +89,20 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`. ??? example "JSON - [CLICK TO EXPAND]" - ```json - { - "trash_score": "-10000", - "name": "Language: Not German or Original", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "Not German", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": 4 - } - }, - { - "name": "Not Original", - "implementation": "LanguageSpecification", - "negate": true, - "required": true, - "fields": { - "value": -2 - } - } - ] - } - ``` + ```json + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-original-or-german.json' %]][[% endfilter %]] + ``` Add the following json to your Radarr/Sonarr with a score of `10`. ??? example "JSON - [CLICK TO EXPAND]" ```json - { - "trash_score": "10", - "name": "Language: Prefer German", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "German Language", - "implementation": "LanguageSpecification", - "negate": false, - "required": true, - "fields": { - "value": 4 - } - } - ] - } + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]] ``` +--- + ### Language: Prefer Language X Language: Prefer German @@ -194,20 +116,28 @@ Add the following json to your Radarr/Sonarr with a score of `10`. ??? example "JSON - [CLICK TO EXPAND]" ```json - { - "trash_score": "10", - "name": "Language: Prefer German", - "includeCustomFormatWhenRenaming": false, - "specifications": [ - { - "name": "German Language", - "implementation": "LanguageSpecification", - "negate": false, - "required": true, - "fields": { - "value": 4 - } - } - ] - } + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]] + ``` + +--- + +### Language: Prefer Multi Language + +Language: Prefer Dutch + +Let's say you just want to prefer Dutch (That uses multiple language conditions as described earlier) and don't care if you get another random language(s). + +!!! info "Replace the Dutch/Flemish conditions with your preferred language(s)." + +Add the following json to your Radarr/Sonarr with a score of `10`. + +??? example "JSON - [CLICK TO EXPAND]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-dutch.json' %]][[% endfilter %]] ``` + +--- + +## FAQ +