From 91f011b918e6e4ce86801488e479b4ed0d31959c Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 1 Dec 2020 21:28:57 +0000 Subject: [PATCH] bitru: fix search redirect (#10336) --- src/Jackett.Common/Definitions/bitru.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Jackett.Common/Definitions/bitru.yml b/src/Jackett.Common/Definitions/bitru.yml index 0fb656be4..fbe83ce33 100644 --- a/src/Jackett.Common/Definitions/bitru.yml +++ b/src/Jackett.Common/Definitions/bitru.yml @@ -30,12 +30,9 @@ caps: settings: - name: adverts - type: select + type: checkbox label: Include Advertising - default: _ - options: - _: yes - no: no + default: true - name: sort type: select label: Sort requested from site @@ -50,8 +47,8 @@ search: - path: browse.php inputs: s: "{{ .Keywords }}" - rek: "{{ re_replace .Config.adverts \"_\" \"\" }}" sort: "{{ re_replace .Config.sort \"_\" \"\" }}" + $raw: "{{ if .Config.adverts }}{{ else }}&rek=no{{ end}}" rows: selector: table.browse-list > tbody > tr