1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2024-12-22 07:43:13 +00:00

f1carreras-api: strip season and episode formatting from keywords

This commit is contained in:
Bogdan 2024-10-22 17:02:14 +03:00
parent eaa20ff7b4
commit 785d651cc7

View file

@ -80,8 +80,9 @@ search:
# if we have an id based search, add Season and Episode as query in name for UNIT3D < v6. Else pass S/E Params for UNIT3D >= v6
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
name: "{{ .Keywords }}"
seasonNumber: "{{ .Query.Season }}"
episodeNumber: "{{ .Query.Ep }}"
# disabled due to not being properly mapped
# seasonNumber: "{{ .Query.Season }}"
# episodeNumber: "{{ .Query.Ep }}"
imdbId: "{{ .Query.IMDBIDShort }}"
tmdbId: "{{ .Query.TMDBID }}"
tvdbId: "{{ .Query.TVDBID }}"
@ -93,6 +94,9 @@ search:
keywordsfilters:
- name: re_replace
args: ["\\.", " "]
- name: re_replace # S2024 to 2024 and S2024E97 to 2024 97
args: ["\\b(?:S(\\d{2,4}))(?:E(\\d{2,4}))?\\b", "$1 $2"]
- name: trim
rows:
selector: data