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
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
label: Password
|
label: Password
|
||||||
|
- name: freeleech
|
||||||
|
type: checkbox
|
||||||
|
label: Search freeleech only
|
||||||
|
default: false
|
||||||
- name: sort
|
- name: sort
|
||||||
type: select
|
type: select
|
||||||
label: Sort requested from site
|
label: Sort requested from site
|
||||||
|
@ -84,16 +88,17 @@ login:
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
# http://microbit.eu/browse.php?searchOpened=1&search=&searchWhat=0&filterOptions=0&orderby=added&ordertype=DESC
|
# 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
|
- path: browse.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ range .Categories }}cat[]={{.}}&{{end}}"
|
# note: range categories does not support specifying the range value more than once so "{{ range .Categories }}cat[{{.}}]={{.}}&{{end}}" is not valid
|
||||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
|
# $raw: "{{ range .Categories }}cat[{{.}}]=1&{{end}}"
|
||||||
|
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
|
||||||
searchOpened: 1
|
searchOpened: 1
|
||||||
# 0 title 1 descr 2 uploader
|
# 0 title, 1 descr, 2 uploader
|
||||||
searchWhat: "{{ if .Query.IMDBID }}1{{else}}0{{end}}"
|
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
|
# 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
|
filterOptions: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
|
||||||
orderby: "{{ .Config.sort }}"
|
orderby: "{{ .Config.sort }}"
|
||||||
ordertype: "{{ .Config.type }}"
|
ordertype: "{{ .Config.type }}"
|
||||||
# does not return imdb link in results
|
# does not return imdb link in results
|
||||||
|
@ -144,7 +149,7 @@ search:
|
||||||
selector: b:has(img[src="templates/default/images/header/arrowdown.gif"])
|
selector: b:has(img[src="templates/default/images/header/arrowdown.gif"])
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: (\d+)
|
args: (\d+\.*\d*)
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
text: 1
|
text: 1
|
||||||
uploadvolumefactor:
|
uploadvolumefactor:
|
||||||
|
@ -153,4 +158,9 @@ search:
|
||||||
filters:
|
filters:
|
||||||
- name: regexp
|
- name: regexp
|
||||||
args: (\d+)
|
args: (\d+)
|
||||||
|
minimumratio:
|
||||||
|
text: 0.6
|
||||||
|
minimumseedtime:
|
||||||
|
# 2 days (as seconds = 2 x 24 x 60 x 60)
|
||||||
|
text: 172800
|
||||||
# custom 3.0
|
# custom 3.0
|
||||||
|
|
Loading…
Reference in New Issue