magnetdl: fix keywordless search

search for 2020 results in 404 error
This commit is contained in:
ilike2burnthing 2020-11-15 16:27:56 +00:00 committed by GitHub
parent 6df47eeefc
commit bfc5f0c8c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -67,10 +67,11 @@ search:
args: [" ", "-"]
- name: tolower
paths:
# return results for 'of' if there are no search parms supplied (for use with the TEST button)
# http://www.magnetdl.com/m/midnight-texas-s01e10/
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{ else }}2/{{ .Today.Year }}/{{ end }}{{ .Config.sort }}/{{ .Config.type }}/"
- path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{ else }}2/{{ .Today.Year }}/{{ end }}{{ .Config.sort }}/{{ .Config.type }}/2/"
# return movie and tv results if there are no search parms supplied (for use with the TEST button)
# https://www.magnetdl.com/download/movies/se/desc/
# https://www.magnetdl.com/m/mandalorian-s01e07/age/desc/
- 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)