irishtv: filter freeleech

This commit is contained in:
Garfield69 2024-04-14 19:48:36 +12:00
parent 00309cf206
commit 1116d9c228
1 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ settings:
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
label: Filter freeleech only
default: false
- name: sort
type: select
@ -85,7 +85,8 @@ search:
search: "{{ .Keywords }}"
category: "{{ range .Categories }}{{.}};{{end}}"
# 0 filename, 1 file&descr, 2 descr, 3 uploaders, 18 genre, 4 imdb, 5 gold, 6 silver, 7 bronze, 8-17 upload multiplier 1x-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
# 0 all, 1 active only, 2 dead only
active: 0
order: "{{ .Config.sort }}"
@ -97,7 +98,7 @@ search:
args: ["\\.", " "]
rows:
selector: "table.lista > tbody > tr:has(a[href^=\"download.php?id=\"]):not(:has(a[href^=\"index.php?page=userdetails\"]))"
selector: "table.lista > tbody > tr:has(a[href^=\"download.php?id=\"]):not(:has(a[href^=\"index.php?page=userdetails\"])){{ if .Config.freeleech }}:has(img[src$=\"gold.gif\"]){{ else }}{{ end }}, able.lista > tbody > tr:has(a[href^=\"download.php?id=\"]):not(:has(a[href^=\"index.php?page=userdetails\"])){{ if .Config.freeleech }}:has(img[src$=\"freeleech.gif\"]){{ else }}{{ end }}"
fields:
category: