From 3c692a8dfb1d387ea77a24af2d8f7435de9ca892 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Wed, 29 Mar 2023 05:37:17 +0100 Subject: [PATCH] funkytorrents: add freeleech search. #9456 `free=1` seems to do something, returning only 53 results, but I have no idea what --- .../Definitions/funkytorrents.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Jackett.Common/Definitions/funkytorrents.yml b/src/Jackett.Common/Definitions/funkytorrents.yml index 46e421902..c70a295f5 100644 --- a/src/Jackett.Common/Definitions/funkytorrents.yml +++ b/src/Jackett.Common/Definitions/funkytorrents.yml @@ -57,6 +57,18 @@ caps: music-search: [q, artist] book-search: [q] +settings: + - name: username + type: text + label: Username + - name: password + type: password + label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false + login: path: takelogin.php method: post @@ -72,9 +84,14 @@ search: paths: - path: browse.php inputs: + # cat search doesn't work if our custom MP3 and Lossless cats are selected # $raw: "{{ range .Categories }}c{{.}}=1&{{end}}" + cat: 0 search: "{{ if .Query.Artist }}{{ .Query.Artist }}{{ else }}{{ .Keywords }}{{ end }}" + # 0 active, 1 incldead, 2 dead incldead: 1 + # 0 all, 1 not documented, 2 free + free: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}" rows: selector: table.mainouter > tbody > tr > td.outer > table > tbody > tr.mouse_out