From 1d231d5ba52f614bbba39839edc81fa3d5fdbd8c Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 10 Sep 2020 19:37:50 +1200 Subject: [PATCH] audiobooktorrents: add freeleech filter #9456 and fix freeleech display --- src/Jackett.Common/Definitions/audiobooktorrents.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/audiobooktorrents.yml b/src/Jackett.Common/Definitions/audiobooktorrents.yml index af303c606..fe972f0a6 100644 --- a/src/Jackett.Common/Definitions/audiobooktorrents.yml +++ b/src/Jackett.Common/Definitions/audiobooktorrents.yml @@ -85,6 +85,10 @@ settings: - name: password type: password label: Password + - name: freeleech + type: checkbox + label: Search freeleech only + default: false - name: info_results type: info label: Search results @@ -111,8 +115,12 @@ search: inputs: $raw: "{{range .Categories}}c{{.}}=1&{{end}}" search: "{{ .Keywords }}" + # title, descr searchin: title + # 0 active, 1 incldead, 2 onlydead incldead: 1 + # 1 onlyfree, null all + only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" rows: selector: table.table-striped > tbody > tr:has(a[href^="download.php?torrent="]) @@ -152,7 +160,7 @@ search: selector: td:nth-last-child(3) downloadvolumefactor: case: - "a.info > b:contains(\"[FREE]\")": 0 + tr.freeleech_color: 0 "*": 1 uploadvolumefactor: text: 1