Sexy-Pics: fix keywordless search (#9455)

This commit is contained in:
ilike2burnthing 2020-09-05 21:16:38 +01:00 committed by GitHub
parent aef9880fa6
commit 00f639b71d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -47,9 +47,9 @@ search:
paths:
# return results for 'of' if there are no search parms supplied (for use with the TEST button)
# https://www.sexy-pics.us/h/hegre-1080p/age/desc/
# https://www.sexy-pics.us/mp4/all/age/desc/2/
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}mp4/all/{{end}}{{ .Config.sort }}/{{ .Config.type }}/"
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}mp4/all/{{end}}{{ .Config.sort }}/{{ .Config.type }}/2/"
# https://www.sexy-pics.us/browse/all/age/desc/2/
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}browse/all/{{end}}{{ .Config.sort }}/{{ .Config.type }}/"
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}browse/all/{{end}}{{ .Config.sort }}/{{ .Config.type }}/2/"
rows:
selector: tr:has(td.m)