Skip to content

Commit

Permalink
p2pelite: add freeleech filter #9456
Browse files Browse the repository at this point in the history
add minimumratio
  • Loading branch information
garfield69 committed Sep 14, 2020
1 parent c6c2c64 commit 3174304
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Jackett.Common/Definitions/p2pelite.yml
Expand Up @@ -60,6 +60,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Filter freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
Expand Down Expand Up @@ -99,13 +103,13 @@ search:
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
# 0 active 1 incldead 2 onlydead 3 new
# 0 active, 1 incldead, 2 onlydead, 3 new
incldead: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"

rows:
selector: table[border="1"][cellspacing="0"][cellpadding="5"] > tbody > tr:has(a[href^="download.php?torrent="])
selector: "table[border=\"1\"][cellspacing=\"0\"][cellpadding=\"5\"] > tbody > tr:has(a[href^=\"download.php?torrent=\"]){{ if .Config.freeleech }}:has(a.info:contains(\"[FREE]\")){{ else }}{{ end }}"

fields:
category:
Expand Down Expand Up @@ -162,4 +166,6 @@ search:
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.5
# TBDEV

0 comments on commit 3174304

Please sign in to comment.