diff --git a/src/Jackett.Common/Definitions/torrentslocal.yml b/src/Jackett.Common/Definitions/torrentslocal.yml
index bfccd965c..7da8b038d 100644
--- a/src/Jackett.Common/Definitions/torrentslocal.yml
+++ b/src/Jackett.Common/Definitions/torrentslocal.yml
@@ -308,6 +308,10 @@ settings:
type: info
label: Layout
default: "Only the Classic forum style is supported.
On the TorrentsLocal web site navigate to the Личные настройки (Preferences) section and set the Стиль форума (Forum Style) option to Классическая тема (Classic Theme)"
+ - name: freeleech
+ type: checkbox
+ label: Search freeleech only
+ default: false
- name: sort
type: select
label: Sort requested from site
@@ -376,10 +380,9 @@ search:
# group releases -1=not selected
srg: -1
nm: "{{ .Keywords }}"
- # find a username
- pn: ""
# all words
allw: 1
+ tor_type: "{{ if .Config.freeleech }}1{{ else }}{{ end }}"
keywordsfilters:
- name: re_replace
args: ["(\\w+)", "+$1"] # prepend + to each word