teamhd: prevent redirect

site now removes default parms by performing a redirect.
to avoid this we need to only code those parms that have values.
This commit is contained in:
Garfield69 2023-02-27 17:41:38 +13:00
parent a3f0bd5b87
commit aa6e8e4bf1
1 changed files with 3 additions and 5 deletions

View File

@ -67,14 +67,12 @@ search:
paths: paths:
- path: browse - path: browse
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" # free: 0 all, 1 gold, 2 silver, 3 normal
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}{{ if .Config.freeleech }}free=1{{ else }}{{ end }}"
# replace spaces with wildcard (percent symbol) as site's default search is exact string. # replace spaces with wildcard (percent symbol) as site's default search is exact string.
search: "{{ re_replace .Keywords \"[\\s]+\" \"%\" }}" search: "{{ if .Keywords }}{{ re_replace .Keywords \"[\\s]+\" \"%\" }}{{ else }}%{{ end }}"
# 0 active, 1 incldead, 2 onlydead, 3 noseeders # 0 active, 1 incldead, 2 onlydead, 3 noseeders
incldead: 1 incldead: 1
# 0 all, 1 gold, 2 silver, 3 normal
free: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}"
year: ""
keywordsfilters: keywordsfilters:
# remove the year from the titles as the site chokes on them during search https://github.com/Jackett/Jackett/issues/4397#issuecomment-623148789 # remove the year from the titles as the site chokes on them during search https://github.com/Jackett/Jackett/issues/4397#issuecomment-623148789
- name: re_replace - name: re_replace