From 1b4590b0d6078d7f5d1e94f08859ccbdb7b43b6e Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Mon, 9 Dec 2024 18:24:16 +1300 Subject: [PATCH] hdonly: simplify IF OR I've tested this using blutopia which is also a json site for a POC and it seems to work --- src/Jackett.Common/Definitions/hdonly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/hdonly.yml b/src/Jackett.Common/Definitions/hdonly.yml index c873534e3..2dbc05c72 100644 --- a/src/Jackett.Common/Definitions/hdonly.yml +++ b/src/Jackett.Common/Definitions/hdonly.yml @@ -254,7 +254,7 @@ search: - name: append args: ".{{ .Result.year }}.{{ .Result._episode_info }}.{{ .Result._format }}.{{ .Result._encoding }}.{{ .Result._media }}{{ if eq .Result._hdr \"True\" }}.HDR{{ else }}{{ end }}.{{ if eq .Result._hdr10plus \"True\" }}.HDR10+{{ else }}{{ end }}.{{ if eq .Result._dovi \"True\" }}.DoVi{{ else }}{{ end }}" - name: append - args: "{{ if eq .Result._vf2 \"True\" }}.MULTI{{ else }}{{ end }}{{ 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 }}" + args: "{{ if or (eq .Result._vf2 \"True\") (or (eq .Result._vff \"True\") (or (eq .Result._vfq \"True\") (or (eq .Result._vfi \"True\") (eq .Result._vf \"True\")))) }}.MULTI{{ else }}{{ end }}" - name: re_replace args: ["(\\.MULTI)\\1", ".MULTI"] - name: append