mirror of
https://github.com/Jackett/Jackett
synced 2025-03-06 19:58:38 +00:00
xbytes2: always search with option 0. resolves #15239
change the config `Search Freeleech` to `Filter Freeleech` and if enabled then filter row to include gold and global freeleech flags only.
This commit is contained in:
parent
e6856a4210
commit
00309cf206
1 changed files with 4 additions and 3 deletions
|
@ -61,7 +61,7 @@ settings:
|
|||
label: Password
|
||||
- name: freeleech
|
||||
type: checkbox
|
||||
label: Search freeleech only
|
||||
label: Filter freeleech only
|
||||
default: false
|
||||
- name: sort
|
||||
type: select
|
||||
|
@ -142,13 +142,14 @@ search:
|
|||
# 0 all, 1 activeonly, 2 deadonly
|
||||
active: 0
|
||||
# 0 title, 1 title&desc, 2 descr, 3 uploaders, 5 gold, 6 silver, 7 bronze, 8 1x, 9 2x, 10 3x, 11 4x, 12 5x, 13 6x, 14 7x, 15 8x, 16 9x, 17 10x
|
||||
options: "{{ if .Config.freeleech }}5{{ else }}0{{ end }}"
|
||||
# note the options are exclusive, so searching for gold means the search keywords are ignored
|
||||
options: 0
|
||||
search: "{{ .Keywords }}"
|
||||
order: "{{ .Config.sort }}"
|
||||
by: "{{ .Config.type }}"
|
||||
|
||||
rows:
|
||||
selector: table.lista > tbody > tr:has(td[onMouseOut])
|
||||
selector: "table.lista > tbody > tr:has(td[onMouseOut]){{ if .Config.freeleech }}:has(img[src$=\"gold.gif\"]){{ else }}{{ end }}, table.lista > tbody > tr:has(td[onMouseOut]){{ if .Config.freeleech }}:has(img[src$=\"freeleech.gif\"]){{ else }}{{ end }}"
|
||||
|
||||
fields:
|
||||
category:
|
||||
|
|
Loading…
Add table
Reference in a new issue