finvip: add freeleech filter #9456

also add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-09-12 15:35:07 +12:00
parent 25f2b8534b
commit 113f7914dd
1 changed files with 44 additions and 35 deletions

View File

@ -10,35 +10,6 @@ certificates:
links:
- https://finvip.org/
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: info_results
type: info
label: "Search results"
default: "For best results, increase the torrents number in your profile to 100."
default: "<ol><li>Only the Xbtit style is supported.</li><ul>Make sure to set the <b>Style</b> option in your profile to <b>Xbtit</b>.</ul><li>For best results, increase the torrents number in your profile to 100.</li><ul>Set the <b>Torrents Per Page</b> option to <b>100</b>.</ul></ol>"
- name: sort
type: select
label: Sort requested from site
default: "3"
options:
"3": "created"
"5": "seeders"
"4": "size"
"2": "title"
- name: type
type: select
label: Order requested from site
default: "2"
options:
"2": "desc"
"1": "asc"
caps:
categorymappings:
- {id: 5, cat: TV/Anime, desc: "Anime"}
@ -79,6 +50,39 @@ caps:
movie-search: [q, imdbid]
music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: info_results
type: info
label: "Search results"
default: "For best results, increase the torrents number in your profile to 100."
default: "<ol><li>Only the Xbtit style is supported.</li><ul>Make sure to set the <b>Style</b> option in your profile to <b>Xbtit</b>.</ul><li>For best results, increase the torrents number in your profile to 100.</li><ul>Set the <b>Torrents Per Page</b> option to <b>100</b>.</ul></ol>"
- name: freeleech
type: checkbox
label: Search freeleech only
default: false
- name: sort
type: select
label: Sort requested from site
default: "3"
options:
"3": "created"
"5": "seeders"
"4": "size"
"2": "title"
- name: type
type: select
label: Order requested from site
default: "2"
options:
"2": "desc"
"1": "asc"
login:
path: index.php?page=login
method: post
@ -106,10 +110,10 @@ search:
category: "{{ if .Categories }}{{ range .Categories }}{{.}};{{end}}{{else}}0{{end}}"
# 0 title 1 title&descr 2 descr
options: "{{ if .Query.IMDBID }}1{{ else }}0{{ end }}"
# 0 all 1 activeonly 2 deadonly
# 0 all, 1 activeonly, 2 deadonly
active: 0
# 0 all 1 classic 2 50%free 3 100%free 4 50%+100&free
gold: 0
# 0 all, 1 classic, 2 50%free, 3 100%free, 4 50%+100&free
gold: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
order: "{{ .Config.sort }}"
by: "{{ .Config.type }}"
@ -164,4 +168,9 @@ search:
"*": 1
uploadvolumefactor:
text: 1
# xbtit
minimumratio:
text: 1.0
minimumseedtime:
# 3 days (as seconds = 3 x 24 x 60 x 60)
text: 259200
# xbtit 2.0.0