torrentdownload: changes to keywordless search

This commit is contained in:
Garfield69 2022-05-13 21:08:50 +12:00
parent fc1984f05c
commit 152fd75319
1 changed files with 2 additions and 1 deletions

View File

@ -121,8 +121,9 @@ login:
path: /
search:
# home page no longer has torrents. /latest would be ideal but has not categories. resorting to /top for keywordless searches.
paths:
- path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{ else }}{{ end }}"
- path: "{{ if .Keywords }}search{{ re_replace .Config.sort \"_\" \"\" }}?q={{ .Keywords }}{{ else }}top{{ end }}"
rows:
selector: table.table2 > tbody > tr:has(span.smallish)