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