From 1a9c8275eaf516ebd8c0ea8c0d488cf9fe5311f6 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 9 Feb 2025 12:02:20 +0200 Subject: [PATCH] itatorrents: fix season search for id based searches Removal of season/ep info from keywords due to mixed usage of `S02` and `Stagione 2` --- src/Jackett.Common/Definitions/itatorrents.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jackett.Common/Definitions/itatorrents.yml b/src/Jackett.Common/Definitions/itatorrents.yml index bc7726ec7..697f6bfcf 100644 --- a/src/Jackett.Common/Definitions/itatorrents.yml +++ b/src/Jackett.Common/Definitions/itatorrents.yml @@ -104,6 +104,8 @@ search: keywordsfilters: - name: re_replace args: ["\\.", " "] + - name: re_replace # strip season and/or ep when single keyword (needed for mixed usage of S01 and Stagione 1) + args: ["^([SE]\\d{1,4}){1,2}$", "{{ if or (.Query.Season) (.Query.Ep) }}{{ else }}$1{{ end }}"] - name: re_replace # S01 to Stagione 1 args: ["(?i)\\bS0*(\\d+)\\b", "Stagione $1"]