mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 13:52:03 +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
|
label: Password
|
||||||
- name: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Filter freeleech only
|
||||||
default: false
|
default: false
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
|
@ -142,13 +142,14 @@ search:
|
||||||
# 0 all, 1 activeonly, 2 deadonly
|
# 0 all, 1 activeonly, 2 deadonly
|
||||||
active: 0
|
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
|
# 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 }}"
|
search: "{{ .Keywords }}"
|
||||||
order: "{{ .Config.sort }}"
|
order: "{{ .Config.sort }}"
|
||||||
by: "{{ .Config.type }}"
|
by: "{{ .Config.type }}"
|
||||||
|
|
||||||
rows:
|
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:
|
fields:
|
||||||
category:
|
category:
|
||||||
|
|
Loading…
Add table
Reference in a new issue