Skip to content

Commit

Permalink
xbytes2: always search with option 0. resolves #15239
Browse files Browse the repository at this point in the history
change the config `Search Freeleech` to `Filter Freeleech`
and if enabled then filter row to include gold and global freeleech flags only.
  • Loading branch information
garfield69 committed Apr 14, 2024
1 parent e6856a4 commit 00309cf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Jackett.Common/Definitions/xbytes2.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 00309cf

Please sign in to comment.