From 8c90b8ed02ddc4be662c169a7b61666b434c1e6b Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 20 Dec 2017 18:21:03 +0100 Subject: [PATCH] MagnetDL: fix default category on empty category search --- src/Jackett.Common/Definitions/magnetdl.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/magnetdl.yml b/src/Jackett.Common/Definitions/magnetdl.yml index 8201d0fc5..279e47440 100644 --- a/src/Jackett.Common/Definitions/magnetdl.yml +++ b/src/Jackett.Common/Definitions/magnetdl.yml @@ -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: