mirror of https://github.com/Jackett/Jackett
magnetdl: fix keywordless search
search for 2020 results in 404 error
This commit is contained in:
parent
6df47eeefc
commit
bfc5f0c8c7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue