mirror of https://github.com/Jackett/Jackett
microbit: add freeleech filter #9456
drop multicat support as it does not work add minimumratio and minimumseedtime fix DLVF which only picked up 100% freeleech and left 50% out.
This commit is contained in:
parent
71f38b0c6c
commit
c0c54f93c9
|
@ -51,6 +51,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
|
||||
|
@ -84,16 +88,17 @@ login:
|
|||
search:
|
||||
paths:
|
||||
# http://microbit.eu/browse.php?searchOpened=1&search=&searchWhat=0&filterOptions=0&orderby=added&ordertype=DESC
|
||||
# http://microbit.eu/browse.php?searchOpened=1&cat%5B12%5D=12&cat%5B13%5D=13&search=&searchWhat=0&filterOptions=0
|
||||
# http://microbit.eu/browse.php?searchOpened=1&cat[12]=12&cat[13]=13&search=&searchWhat=0&filterOptions=0
|
||||
- path: browse.php
|
||||
inputs:
|
||||
$raw: "{{ range .Categories }}cat[]={{.}}&{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
|
||||
# note: range categories does not support specifying the range value more than once so "{{ range .Categories }}cat[{{.}}]={{.}}&{{end}}" is not valid
|
||||
# $raw: "{{ range .Categories }}cat[{{.}}]=1&{{end}}"
|
||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
|
||||
searchOpened: 1
|
||||
# 0 title 1 descr 2 uploader
|
||||
searchWhat: "{{ if .Query.IMDBID }}1{{else}}0{{end}}"
|
||||
# 0 active 1 active&dead 2 dead 3 dl multiplier 4 ul multiplier 5 dl&ul multiplier 6 bad torrent 7 unverified torrent 8 my torrent
|
||||
filterOptions: 1
|
||||
# 0 title, 1 descr, 2 uploader
|
||||
searchWhat: "{{ if .Query.IMDBID }}1{{ else }}0{{ end }}"
|
||||
# 0 active, 1 active&dead, 2 dead, 3 dl multiplier, 4 ul multiplier, 5 dl&ul multiplier, 6 bad torrent, 7 unverified torrent, 8 my torrent
|
||||
filterOptions: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
|
||||
orderby: "{{ .Config.sort }}"
|
||||
ordertype: "{{ .Config.type }}"
|
||||
# does not return imdb link in results
|
||||
|
@ -144,7 +149,7 @@ search:
|
|||
selector: b:has(img[src="templates/default/images/header/arrowdown.gif"])
|
||||
filters:
|
||||
- name: regexp
|
||||
args: (\d+)
|
||||
args: (\d+\.*\d*)
|
||||
uploadvolumefactor:
|
||||
text: 1
|
||||
uploadvolumefactor:
|
||||
|
@ -153,4 +158,9 @@ search:
|
|||
filters:
|
||||
- name: regexp
|
||||
args: (\d+)
|
||||
minimumratio:
|
||||
text: 0.6
|
||||
minimumseedtime:
|
||||
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
||||
text: 172800
|
||||
# custom 3.0
|
||||
|
|
Loading…
Reference in New Issue