Skip to content

Commit

Permalink
torrentdownloads: drop rows with errors resolves #9111
Browse files Browse the repository at this point in the history
rows with email suppression  contain invalid html structure
  • Loading branch information
garfield69 committed Jul 7, 2020
1 parent 67bf90d commit b498bfb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Jackett.Common/Definitions/torrentdownloads.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit b498bfb

Please sign in to comment.