mirror of
https://github.com/Jackett/Jackett
synced 2025-03-04 10:48:26 +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:
parent
439d88fd1a
commit
1a9c8275ea
1 changed files with 2 additions and 0 deletions
|
@ -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"]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue