magnetdl: fix test. resolves #5470

for empty searches, the site has dropped the invalid-cat page, so we search for movies instead
This commit is contained in:
Garfield69 2019-06-12 08:33:02 +12:00
parent 2b59863409
commit 11e6e26c12
1 changed files with 1 additions and 2 deletions

View File

@ -39,8 +39,7 @@
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/
# 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}}"
- path: "{{if .Keywords}}{{ re_replace .Keywords \"(.).*\" \"$1\" }}/{{ .Keywords }}/{{else}}download/movies/{{end}}"
rows:
selector: tr:has(td[class="m"])
fields: