Skip to content

Commit

Permalink
irishtv: filter freeleech
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 14, 2024
1 parent 00309cf commit 1116d9c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Jackett.Common/Definitions/irishtv.yml
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}"
Expand All @@ -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:
Expand Down

0 comments on commit 1116d9c

Please sign in to comment.