mirror of
https://github.com/Jackett/Jackett
synced 2024-12-22 15:57:50 +00:00
f1carreras-api: strip season and episode formatting from keywords
This commit is contained in:
parent
eaa20ff7b4
commit
785d651cc7
1 changed files with 6 additions and 2 deletions
|
@ -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
|
# 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}}"
|
$raw: "{{ range .Categories }}&categories[]={{.}}{{end}}"
|
||||||
name: "{{ .Keywords }}"
|
name: "{{ .Keywords }}"
|
||||||
seasonNumber: "{{ .Query.Season }}"
|
# disabled due to not being properly mapped
|
||||||
episodeNumber: "{{ .Query.Ep }}"
|
# seasonNumber: "{{ .Query.Season }}"
|
||||||
|
# episodeNumber: "{{ .Query.Ep }}"
|
||||||
imdbId: "{{ .Query.IMDBIDShort }}"
|
imdbId: "{{ .Query.IMDBIDShort }}"
|
||||||
tmdbId: "{{ .Query.TMDBID }}"
|
tmdbId: "{{ .Query.TMDBID }}"
|
||||||
tvdbId: "{{ .Query.TVDBID }}"
|
tvdbId: "{{ .Query.TVDBID }}"
|
||||||
|
@ -93,6 +94,9 @@ search:
|
||||||
keywordsfilters:
|
keywordsfilters:
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
args: ["\\.", " "]
|
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:
|
rows:
|
||||||
selector: data
|
selector: data
|
||||||
|
|
Loading…
Reference in a new issue