From bf8a280d66e8efe54ac4c48560b3fc7d3b782760 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Wed, 16 Sep 2020 19:08:54 +1200 Subject: [PATCH] xwtorrents: add freeleech filter #9456 add minimumratio and minimumseedtime --- src/Jackett.Common/Definitions/xwtorrents.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/xwtorrents.yml b/src/Jackett.Common/Definitions/xwtorrents.yml index fe63fd17f..c8896ef48 100644 --- a/src/Jackett.Common/Definitions/xwtorrents.yml +++ b/src/Jackett.Common/Definitions/xwtorrents.yml @@ -75,6 +75,10 @@ settings: - name: password type: password label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false - name: seedbox type: checkbox label: "Use SeedBox Download Link" @@ -121,7 +125,8 @@ search: - path: browse.php inputs: $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" - incldead: 1 + # 0 active, 1 incldead, 2 onlydead, 3 freeleech, 4 descr + incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}" search: "{{ .Keywords }}" sort: "{{ .Config.sort }}" type: "{{ .Config.type }}" @@ -174,4 +179,9 @@ search: "*": 1 uploadvolumefactor: text: 1 + minimumratio: + text: 0.7 + minimumseedtime: + # 1 day (as seconds = 24 x 60 x 60) + text: 86400 # engine n/a