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:44:28 +13:00
parent 4b8bc92efa
commit 40ce931aa6
1 changed files with 6 additions and 2 deletions

View File

@ -55,10 +55,14 @@ search:
after: 1
fields:
categorydesc:
categorydesc_href:
selector: div.inmy > a:last-of-type
optional: true
default: "порно видео"
categorydesc_id:
selector: div.inmy > a:last-of-type
optional: true
categorydesc:
text: "{{ if .Result.categorydesc_href }}{{ .Result.categorydesc_id }}{{ else }}порно видео{{ end }}"
title:
selector: div.news_text > a
details: