Skip to content

Commit

Permalink
twilightszoom: add freeleech filter #9456
Browse files Browse the repository at this point in the history
add minimumratio
  • Loading branch information
garfield69 committed Sep 15, 2020
1 parent 29787bc commit a8dbfc1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Jackett.Common/Definitions/twilightszoom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ settings:
- name: password
type: password
label: Password
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
Expand Down Expand Up @@ -127,9 +131,9 @@ search:
- path: browse.php
inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if or (.Query.Artist) (.Query.Album) }}{{ or (.Query.Artist) (.Query.Album) }}{{else}}{{ .Keywords }}{{end}}"
# 0 active 1 incldead 2 onlydead 3 free
incldead: 1
search: "{{ if or (.Query.Artist) (.Query.Album) }}{{ or (.Query.Artist) (.Query.Album) }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active, 1 incldead, 2 onlydead, 3 free
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"

Expand Down Expand Up @@ -191,4 +195,6 @@ search:
"*": 1
uploadvolumefactor:
text: 1
minimumratio:
text: 0.5
# TBDEV,U232,and Btdev (customised)

0 comments on commit a8dbfc1

Please sign in to comment.