mirror of
https://github.com/Jackett/Jackett
synced 2025-03-11 14:44:46 +00:00
proporno: fix 7a692d2640
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
4b8bc92efa
commit
40ce931aa6
1 changed files with 6 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue