Skip to content

Commit

Permalink
girotorrent: : filter freeleech
Browse files Browse the repository at this point in the history
  • Loading branch information
garfield69 committed Apr 14, 2024
1 parent 1116d9c commit ab1c2bc
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Jackett.Common/Definitions/girotorrent.yml
Expand Up @@ -96,7 +96,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 @@ -152,13 +152,14 @@ search:
# 15 results per page fetch 5 (site is slow, dont be greedy and fetch more)
- path: index.php
inputs:
page: torrents
search: "{{ .Keywords }}"
category: "{{ range .Categories }}{{.}};{{end}}"
page: torrents
# 0 name, 1 name&descr, 2 descr, 3 uploader, 5 gold, 6 silver, 7 bronze
# note the options are exclusive, so searching for gold means the search keywords are ignored
options: 0
# 0 all, 1 activeonly, 2 deadonly
active: 0
# 0 name, 1 name&descr, 2 descr, 3 uploader, 5 gold, 6 silver, 7 bronze
options: "{{ if .Config.freeleech }}5{{ else }}0{{ end }}"
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
keywordsfilters:
Expand All @@ -171,7 +172,7 @@ search:
# does not support imdbid search and does not return imdb link in results

rows:
selector: div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^="index.php?page=torrent-details&id="])
selector: "div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]){{ if .Config.freeleech }}:has(img[alt=\"Gold 100% Free\"]){{ else }}{{ end }}, div.b-content > table > tbody > tr > td > table.lista > tbody > tr:has(a[href^=\"index.php?page=torrent-details&id=\"]){{ if .Config.freeleech }}:has(img[alt=\"Free Leech\"]){{ else }}{{ end }}"
filters:
- name: andmatch

Expand Down

0 comments on commit ab1c2bc

Please sign in to comment.