mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 19:58:38 +00:00
nyaasi: optimise 05d4aceff3
switch to using inputs for path
This commit is contained in:
parent
05d4aceff3
commit
abf538242c
1 changed files with 4 additions and 6 deletions
|
@ -148,18 +148,16 @@ search:
|
||||||
inputs:
|
inputs:
|
||||||
q: "{{ .Keywords }}"
|
q: "{{ .Keywords }}"
|
||||||
f: "{{ .Config.filter-id }}"
|
f: "{{ .Config.filter-id }}"
|
||||||
c: "{{ .Config.cat-id }}"
|
|
||||||
s: "{{ .Config.sort }}"
|
|
||||||
o: "{{ .Config.type }}"
|
|
||||||
# strip 0 from start of episode number - #11019, or fetch page 2 for keywordless
|
# strip 0 from start of episode number - #11019, or fetch page 2 for keywordless
|
||||||
- path: /
|
- path: /
|
||||||
inputs:
|
inputs:
|
||||||
q: "{{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}{{ end }}"
|
q: "{{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}{{ end }}"
|
||||||
p: "{{ if .Keywords }}{{ else }}2{{ end }}"
|
p: "{{ if .Keywords }}{{ else }}2{{ end }}"
|
||||||
f: "{{ .Config.filter-id }}"
|
f: "{{ .Config.filter-id }}"
|
||||||
c: "{{ .Config.cat-id }}"
|
inputs:
|
||||||
s: "{{ .Config.sort }}"
|
c: "{{ .Config.cat-id }}"
|
||||||
o: "{{ .Config.type }}"
|
s: "{{ .Config.sort }}"
|
||||||
|
o: "{{ .Config.type }}"
|
||||||
|
|
||||||
keywordsfilters:
|
keywordsfilters:
|
||||||
- name: re_replace
|
- name: re_replace
|
||||||
|
|
Loading…
Add table
Reference in a new issue