mirror of https://github.com/Jackett/Jackett
newretro: fix 0c7b2b88eb
we want to handle the href when it is missing, but we also want to spot when a site adds new cats that we have not mapped yet.
This commit is contained in:
parent
0c7b2b88eb
commit
4b8bc92efa
|
@ -130,14 +130,19 @@ search:
|
|||
- name: andmatch
|
||||
|
||||
fields:
|
||||
category:
|
||||
category_href:
|
||||
selector: a[href^="browse.php?cat="]
|
||||
attribute: href
|
||||
optional: true
|
||||
category_id:
|
||||
selector: a[href^="browse.php?cat="]
|
||||
attribute: href
|
||||
optional: true
|
||||
default: 129
|
||||
filters:
|
||||
- name: querystring
|
||||
args: cat
|
||||
category:
|
||||
text: "{{ if .Result.category_href }}{{ .Result.category_id }}{{ else }}129{{ end }}"
|
||||
title:
|
||||
selector: a[href^="details.php?id="]:has(b)
|
||||
details:
|
||||
|
|
Loading…
Reference in New Issue