nyaasi: third time trying to optimise ;-)

This commit is contained in:
Garfield69
2024-01-05 15:23:41 +13:00
parent abf538242c
commit e23366a680

View File

@@ -147,14 +147,13 @@ search:
- path: /
inputs:
q: "{{ .Keywords }}"
f: "{{ .Config.filter-id }}"
# strip 0 from start of episode number - #11019, or fetch page 2 for keywordless
- path: /
inputs:
q: "{{ if .Keywords }}{{ re_replace .Keywords \"\\b0(\\d{1})\\b\" \"$1\" }}{{ else }}{{ end }}"
p: "{{ if .Keywords }}{{ else }}2{{ end }}"
f: "{{ .Config.filter-id }}"
inputs:
f: "{{ .Config.filter-id }}"
c: "{{ .Config.cat-id }}"
s: "{{ .Config.sort }}"
o: "{{ .Config.type }}"