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

View File

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