torrentdownloads: drop rows with errors resolves #9111

rows with email suppression  contain invalid html structure
This commit is contained in:
Garfield69 2020-07-08 10:11:18 +12:00
parent 67bf90d0bd
commit b498bfbe3e
1 changed files with 8 additions and 8 deletions

View File

@ -58,15 +58,21 @@ download:
search:
paths:
- path: "{{ if .Keywords }}/search/{{else}}/today/{{end}}"
- path: "{{ if .Keywords }}/search/{{ else }}/today/{{ end }}"
inputs:
$raw: "{{ range .Categories }}s_cat={{.}}&{{end}}"
search: "{{ .Keywords }}"
rows:
selector: div.inner_container > div:has(p:has(a[href^="/torrent/"]))
selector: div.inner_container > div:has(p:has(a[href^="/torrent/"])):not(:has(span.__cf_email__))
fields:
category:
selector: img[src^="/templates/new/images/icons/menu_icon"]
attribute: src
filters:
- name: regexp
args: (\d+)
title:
selector: p:nth-child(1) > a
attribute: title
@ -87,12 +93,6 @@ search:
selector: span:nth-child(4)
leechers:
selector: span:nth-child(3)
category:
selector: img[src^="/templates/new/images/icons/menu_icon"]
attribute: src
filters:
- name: regexp
args: (\d+)
downloadvolumefactor:
text: 0
uploadvolumefactor: