From 53108362d626118749aba0810c2c306c88742abc Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 2 Jun 2020 20:54:22 +0100 Subject: [PATCH] magnetdl: fix keywordless search (#8838) https://www.magnetdl.com/o/of/age/desc/ - 404 change to - https://www.magnetdl.com/2/2020/age/desc/ (or any year up to 2999) Tested, working --- src/Jackett.Common/Definitions/magnetdl.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Jackett.Common/Definitions/magnetdl.yml b/src/Jackett.Common/Definitions/magnetdl.yml index f521e6a68..7dc941456 100644 --- a/src/Jackett.Common/Definitions/magnetdl.yml +++ b/src/Jackett.Common/Definitions/magnetdl.yml @@ -62,8 +62,8 @@ search: 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}}o/of/{{end}}{{ .Config.sort }}/{{ .Config.type }}/" - - path: "{{ if .Keywords }}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}o/of/{{end}}{{ .Config.sort }}/{{ .Config.type }}/2/" + - 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/" rows: selector: tr:has(td.m)