diff --git a/src/Jackett.Common/Definitions/teamhd.yml b/src/Jackett.Common/Definitions/teamhd.yml
index 1448f7822..7764dd37d 100644
--- a/src/Jackett.Common/Definitions/teamhd.yml
+++ b/src/Jackett.Common/Definitions/teamhd.yml
@@ -48,7 +48,10 @@ settings:
type: info
label: How to get the Cookie
default: "
- Login to this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button (Chrome Browser) or HTML button (FireFox)
- Refresh the page by pressing F5
- Click on the first row entry
- Select the Headers tab on the Right panel
- Find 'cookie:' in the Request Headers section
- Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
"
-
+ - name: freeleech
+ type: checkbox
+ label: Search freeleech only
+ default: false
- name: striprussian
type: checkbox
label: Strip Russian Letters
@@ -67,11 +70,12 @@ search:
- path: browse
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
- search: "{{ .Keywords }}"
- # 0 active 1 incldead 2 onlydead 3 noseeders
+ # replace spaces with wildcard (percent symbol) as site's default search is exact string.
+ search: "{{ re_replace .Keywords \"[\\s]+\" \"%\" }}"
+ # 0 active, 1 incldead, 2 onlydead, 3 noseeders
incldead: 1
- # 0 all 1 gold 2 silver 3 normal
- free: 0
+ # 0 all, 1 gold, 2 silver, 3 normal
+ free: "{{ if .Config.freeleech }}1{{ else }}0{{ end }}"
year: ""
keywordsfilters:
# remove the year from the titles as the site chokes on them during search https://github.com/Jackett/Jackett/issues/4397#issuecomment-623148789