mirror of
https://github.com/Jackett/Jackett
synced 2025-03-11 22:52:58 +00:00
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:
parent
a3f0bd5b87
commit
aa6e8e4bf1
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue