1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-03-04 18:59:01 +00:00

itatorrents: fix season search for id based searches

Removal of season/ep info from keywords due to mixed usage of `S02` and `Stagione 2`
This commit is contained in:
Bogdan 2025-02-09 12:02:20 +02:00
parent 439d88fd1a
commit 1a9c8275ea

View file

@ -104,6 +104,8 @@ search:
keywordsfilters: keywordsfilters:
- name: re_replace - name: re_replace
args: ["\\.", " "] 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 - name: re_replace # S01 to Stagione 1
args: ["(?i)\\bS0*(\\d+)\\b", "Stagione $1"] args: ["(?i)\\bS0*(\\d+)\\b", "Stagione $1"]