torrentquest: fix keywordless search

sorting movies or tv by age results in 404 error
This commit is contained in:
ilike2burnthing 2020-11-15 16:24:41 +00:00 committed by GitHub
parent c24a4d6cce
commit 6df47eeefc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ search:
# return movie and tv results if there are no search parms supplied (for use with the TEST button)
# https://torrentquest.com/download/movies/se/desc/
# https://torrentquest.com/m/mandalorian-s01e07/age/desc/
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}{{ else }}download/movies{{ end }}/{{ .Config.sort }}/{{ .Config.type }}/"
- path: "{{ if .Keywords }}{{ else }}download/tv/{{ .Config.sort }}/{{ .Config.type }}/{{ end }}"
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{ .Config.sort }}/{{ .Config.type }}/{{ else }}download/movies/{{ end }}"
- path: "{{ if .Keywords }}/{{ .Config.sort }}/{{ .Config.type }}/{{ else }}download/tv/{{ end }}"
rows:
selector: tr:has(td.m)