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:
Garfield69 2024-02-16 17:05:38 +13:00
parent 0c7b2b88eb
commit 4b8bc92efa
1 changed files with 7 additions and 2 deletions

View File

@ -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: