From a89820af21ff3632595d886d8e071466691fc780 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 9 Oct 2024 13:00:18 +0300 Subject: [PATCH] hdonly: add options to include dubs info to title (#15633) Co-authored-by: garfield69 --- src/Jackett.Common/Definitions/hdonly.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Jackett.Common/Definitions/hdonly.yml b/src/Jackett.Common/Definitions/hdonly.yml index afcf00db0..19d4d770f 100644 --- a/src/Jackett.Common/Definitions/hdonly.yml +++ b/src/Jackett.Common/Definitions/hdonly.yml @@ -54,6 +54,9 @@ settings: type: checkbox label: Include DV/HDR10 in filename when a release has multiple HDR formats. default: false + - name: add_version_francophone_to_title + type: checkbox + label: Append Version Francophone flags to titles if available (VFF, VFQ, VFI, VF) - name: multilang type: checkbox label: Replace MULTi by another language in release name @@ -251,6 +254,14 @@ search: args: "{{ if or (eq .Result._vff \"True\") (eq .Result._vfq \"True\") }}.MULTI{{ else }}{{ end }}{{ if or (eq .Result._vfi \"True\") (eq .Result._vf \"True\") }}.MULTI{{ else }}{{ end }}" - name: replace args: [".MULTI.MULTI", ".MULTI"] + - name: append + args: "{{ if and (.Config.add_version_francophone_to_title) (eq .Result._vff \"True\") }}.VFF{{ else }}{{ end }}" + - name: append + args: "{{ if and (.Config.add_version_francophone_to_title) (eq .Result._vfq \"True\") }}.VFQ{{ else }}{{ end }}" + - name: append + args: "{{ if and (.Config.add_version_francophone_to_title) (eq .Result._vfi \"True\") }}.VFI{{ else }}{{ end }}" + - name: append + args: "{{ if and (.Config.add_version_francophone_to_title) (eq .Result._vf \"True\") }}.VF{{ else }}{{ end }}" - name: append args: "{{ if eq .Result._vof \"True\" }}.FRENCH{{ else }}{{ end }}" - name: re_replace