From 2f64376be2bdfdb2b9712517af2821c7cf117b04 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 12 Sep 2020 18:57:50 +1200 Subject: [PATCH] hon3yhd: add freeleech filter #9456 --- src/Jackett.Common/Definitions/hon3yhd.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Jackett.Common/Definitions/hon3yhd.yml b/src/Jackett.Common/Definitions/hon3yhd.yml index 6a81d0bb7..c60e276ca 100644 --- a/src/Jackett.Common/Definitions/hon3yhd.yml +++ b/src/Jackett.Common/Definitions/hon3yhd.yml @@ -55,6 +55,18 @@ caps: movie-search: [q] music-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: login.php method: form @@ -78,14 +90,17 @@ search: searchin: title # 0 active, 1 incldead, 2 onlydead incldead: 1 + only_free: "{{ if .Config.freeleech }}1{{ else }}{{ end }}" keywordsfilters: # by default the search returns unordered resuts of an OR query making the results useless in many cases, adding + to the keywords improves the situation (Issue #1859) - name: re_replace # replace special characters with " +" args: ["[^\\w\\d]+", " +"] - name: prepend args: "+" + rows: selector: table > tbody > tr.tt + fields: title: selector: a[href^="details.php?id="]