switched to json

pull/1086/head
TRaSH 2 years ago
parent 9307cb95ca
commit 5189787558

@ -4,6 +4,14 @@ Here we will try to explain how to setup your own preferred language Custom Form
## Language Examples ## 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: Original Only
<sub><sub>Language: Not Original</sub> <sub><sub>Language: Not Original</sub>
@ -19,24 +27,11 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-original.json' %]][[% endfilter %]]
"trash_score": "-10000",
"name": "Language: Not Original",
"includeCustomFormatWhenRenaming": false,
"specifications": [
{
"name": "Not Original Language",
"implementation": "LanguageSpecification",
"negate": true,
"required": true,
"fields": {
"value": -2
}
}
]
}
``` ```
---
### Language: English Only ### Language: English Only
<sub><sub>Language: Not English</sub> <sub><sub>Language: Not English</sub>
@ -52,25 +47,11 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-english.json' %]][[% endfilter %]]
"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
}
}
]
}
``` ```
---
### Language: Multiple Only ### Language: Multiple Only
<sub><sub>Language: Not Dutch</sub> <sub><sub>Language: Not Dutch</sub>
@ -90,36 +71,14 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-dutch.json' %]][[% endfilter %]]
"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
}
}
]
}
``` ```
---
### Language: Prefer X but i'll take Y ### Language: Prefer X but i'll take Y
<sub><sub>Language: Not German or Original</sub> <sub><sub>Language: Not Original or German</sub>
<sub><sub>Language: Prefer German</sub> <sub><sub>Language: Prefer German</sub>
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. 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.
@ -131,31 +90,7 @@ Add the following json to your Radarr/Sonarr with a score of `-10000`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-original-or-german.json' %]][[% endfilter %]]
"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
}
}
]
}
``` ```
Add the following json to your Radarr/Sonarr with a score of `10`. Add the following json to your Radarr/Sonarr with a score of `10`.
@ -163,24 +98,11 @@ Add the following json to your Radarr/Sonarr with a score of `10`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]]
"trash_score": "10",
"name": "Language: Prefer German",
"includeCustomFormatWhenRenaming": false,
"specifications": [
{
"name": "German Language",
"implementation": "LanguageSpecification",
"negate": false,
"required": true,
"fields": {
"value": 4
}
}
]
}
``` ```
---
### Language: Prefer Language X ### Language: Prefer Language X
<sub><sub>Language: Prefer German</sub> <sub><sub>Language: Prefer German</sub>
@ -194,20 +116,28 @@ Add the following json to your Radarr/Sonarr with a score of `10`.
??? example "JSON - [CLICK TO EXPAND]" ??? example "JSON - [CLICK TO EXPAND]"
```json ```json
{ [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]]
"trash_score": "10", ```
"name": "Language: Prefer German",
"includeCustomFormatWhenRenaming": false, ---
"specifications": [
{ ### Language: Prefer Multi Language
"name": "German Language",
"implementation": "LanguageSpecification", <sub><sub>Language: Prefer Dutch</sub>
"negate": false,
"required": true, 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).
"fields": {
"value": 4 !!! 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

Loading…
Cancel
Save