teamhd: add wildcard resolves #9081

also add freeleech filter #9456
This commit is contained in:
Garfield69
2020-09-09 21:52:07 +12:00
parent 09f44ef470
commit 85e55688af

View File

@@ -48,7 +48,10 @@ settings:
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)<li>Refresh the page by pressing <b>F5</b><li>Click on the first row entry<li>Select the <b>Headers</b> tab on the Right panel<li>Find <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
- 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