mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -130,14 +130,19 @@ search:
|
|||||||
- name: andmatch
|
- name: andmatch
|
||||||
|
|
||||||
fields:
|
fields:
|
||||||
category:
|
category_href:
|
||||||
|
selector: a[href^="browse.php?cat="]
|
||||||
|
attribute: href
|
||||||
|
optional: true
|
||||||
|
category_id:
|
||||||
selector: a[href^="browse.php?cat="]
|
selector: a[href^="browse.php?cat="]
|
||||||
attribute: href
|
attribute: href
|
||||||
optional: true
|
optional: true
|
||||||
default: 129
|
|
||||||
filters:
|
filters:
|
||||||
- name: querystring
|
- name: querystring
|
||||||
args: cat
|
args: cat
|
||||||
|
category:
|
||||||
|
text: "{{ if .Result.category_href }}{{ .Result.category_id }}{{ else }}129{{ end }}"
|
||||||
title:
|
title:
|
||||||
selector: a[href^="details.php?id="]:has(b)
|
selector: a[href^="details.php?id="]:has(b)
|
||||||
details:
|
details:
|
||||||
|
Reference in New Issue
Block a user