mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
MagnetDL: fix default category on empty category search
This commit is contained in:
@@ -37,7 +37,8 @@
|
||||
paths:
|
||||
# return movie results 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}}download/movies/{{end}}"
|
||||
# using "invalid-cat" in the default case (empty keywords) causes no category limitation
|
||||
- path: "{{if .Keywords}}/{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}download/invalid-cat/{{end}}"
|
||||
rows:
|
||||
selector: tr:has(td[class="m"])
|
||||
fields:
|
||||
|
Reference in New Issue
Block a user