From fbfeeac6a62a0dbf7de49fb7c53176d21267ca3e Mon Sep 17 00:00:00 2001 From: TRaSH Date: Sat, 13 Apr 2024 11:02:57 +0200 Subject: [PATCH 1/3] feat(guide): Starr language tips add German dual and multi --- .../How-to-setup-language-custom-formats.md | 38 ++++++++++++++++++- .../language-german-and-original.json | 38 +++++++++++++++++++ 2 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 docs/json/guide-only/language-german-and-original.json 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 024706508..47575aa03 100644 --- a/docs/Radarr/Tips/How-to-setup-language-custom-formats.md +++ b/docs/Radarr/Tips/How-to-setup-language-custom-formats.md @@ -32,6 +32,9 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `-1 [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-original.json' %]][[% endfilter %]] ``` +!!! tip + Don't forget to take a look at [Language Special Cases](#language-special-cases) + --- ### Language: English Only @@ -52,6 +55,9 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `-1 [[% filter indent(width=4) %]][[% include 'json/guide-only/language-not-english.json' %]][[% endfilter %]] ``` +!!! tip + Don't forget to take a look at [Language Special Cases](#language-special-cases) + --- ### Language: Multiple Only @@ -80,8 +86,8 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `-1 ### Language: Prefer X but i'll take Y -Language: Not Original or German -Language: Prefer German +Language: Not Original or German
+Language: Prefer German
Let's say you want German, but if German is not available then fall back to Original language but don't accept any other translated languages. @@ -103,6 +109,9 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]] ``` +!!! tip + Don't forget to take a look at [Language Special Cases](#language-special-cases) + --- ### Language: Prefer Language X @@ -121,6 +130,9 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 [[% filter indent(width=4) %]][[% include 'json/guide-only/language-prefer-german.json' %]][[% endfilter %]] ``` +!!! tip + Don't forget to take a look at [Language Special Cases](#language-special-cases) + --- ### Language: Prefer Multi Language @@ -145,6 +157,28 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 --- +## Language Special Cases + +Here we will add special cases often related to a specific language. +example: German Dual Language and Multi-language releases + +!!! info "In general Dual/Multi stands for original language (*movies/show original language*) + foreign language(s), which audio track is used as first track isn't always known." + +### Language: German + Original + +This Custom Format can be used in several ways, + +- If you **DON'T WANT** that your media file has a German audio track included add this Custom Format with a score of `-10000`. +- If you **PREFER** that your media file has a German audio track included then you can add this Custom Format with a positive score. + +Language: German Dual Language + +??? example "JSON - [Click to show/hide]" + + ```json + [[% filter indent(width=4) %]][[% include 'json/guide-only/language-german-and-original.json' %]][[% endfilter %]] + ``` + ## FAQ & INFO ### What's reverse scoring diff --git a/docs/json/guide-only/language-german-and-original.json b/docs/json/guide-only/language-german-and-original.json new file mode 100644 index 000000000..6361ba2bb --- /dev/null +++ b/docs/json/guide-only/language-german-and-original.json @@ -0,0 +1,38 @@ +{ + "trash_id": "guide-only", + "trash_scores": { + "default": -10000 + }, + "trash_description": "Language: German Dual Language and Multi-language releases", + "name": "Language: German + Original", + "includeCustomFormatWhenRenaming": false, + "specifications": [ + { + "name": "German", + "implementation": "LanguageSpecification", + "negate": false, + "required": true, + "fields": { + "value": 4 + } + }, + { + "name": "DL", + "implementation": "ReleaseTitleSpecification", + "negate": false, + "required": false, + "fields": { + "value": "(? Date: Mon, 15 Apr 2024 20:16:39 +0200 Subject: [PATCH 2/3] fixed: url redirect failure --- docs/Radarr/Tips/How-to-setup-language-custom-formats.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 47575aa03..9272990b2 100644 --- a/docs/Radarr/Tips/How-to-setup-language-custom-formats.md +++ b/docs/Radarr/Tips/How-to-setup-language-custom-formats.md @@ -33,7 +33,7 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `-1 ``` !!! tip - Don't forget to take a look at [Language Special Cases](#language-special-cases) + Don't forget to take a look at [Language Special Cases](/Radarr/Tips/How-to-setup-language-custom-formats/#language-special-cases) --- @@ -56,7 +56,7 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `-1 ``` !!! tip - Don't forget to take a look at [Language Special Cases](#language-special-cases) + Don't forget to take a look at [Language Special Cases](/Radarr/Tips/How-to-setup-language-custom-formats/#language-special-cases) --- @@ -110,7 +110,7 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 ``` !!! tip - Don't forget to take a look at [Language Special Cases](#language-special-cases) + Don't forget to take a look at [Language Special Cases](/Radarr/Tips/How-to-setup-language-custom-formats/#language-special-cases) --- @@ -131,7 +131,7 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 ``` !!! tip - Don't forget to take a look at [Language Special Cases](#language-special-cases) + Don't forget to take a look at [Language Special Cases](/Radarr/Tips/How-to-setup-language-custom-formats/#language-special-cases) --- From 01ec330bc7a548d02d10a637ec098b5188a0daf8 Mon Sep 17 00:00:00 2001 From: TRaSH Date: Sun, 21 Apr 2024 19:58:23 +0200 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: zakary --- .../Tips/How-to-setup-language-custom-formats.md | 12 ++++++------ .../guide-only/language-german-and-original.json | 2 +- 2 files changed, 7 insertions(+), 7 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 9272990b2..00ccd31d7 100644 --- a/docs/Radarr/Tips/How-to-setup-language-custom-formats.md +++ b/docs/Radarr/Tips/How-to-setup-language-custom-formats.md @@ -159,17 +159,17 @@ Add the following json to your Radarr/Sonarr with a score in your profile of `10 ## Language Special Cases -Here we will add special cases often related to a specific language. -example: German Dual Language and Multi-language releases +Here we will add special cases that often are related to specific languages. +example: German Dual Language and/or Multi-language releases -!!! info "In general Dual/Multi stands for original language (*movies/show original language*) + foreign language(s), which audio track is used as first track isn't always known." +!!! info "In general, Dual/Multi stands for original language (*movies/show original language*) + foreign language(s). Which audio track being used as the first track isn't always known based on the naming." ### Language: German + Original -This Custom Format can be used in several ways, +This Custom Format can be used in several ways: -- If you **DON'T WANT** that your media file has a German audio track included add this Custom Format with a score of `-10000`. -- If you **PREFER** that your media file has a German audio track included then you can add this Custom Format with a positive score. +- If you **DON'T WANT** your media file to have a German audio track included, add this Custom Format with a score of `-10000`. +- If you **PREFER** your media file to have a German audio track included, add this Custom Format with a positive score. Language: German Dual Language diff --git a/docs/json/guide-only/language-german-and-original.json b/docs/json/guide-only/language-german-and-original.json index 6361ba2bb..252f3882b 100644 --- a/docs/json/guide-only/language-german-and-original.json +++ b/docs/json/guide-only/language-german-and-original.json @@ -3,7 +3,7 @@ "trash_scores": { "default": -10000 }, - "trash_description": "Language: German Dual Language and Multi-language releases", + "trash_description": "Language: German Dual and Multi language releases", "name": "Language: German + Original", "includeCustomFormatWhenRenaming": false, "specifications": [