thevault: update

add freeleech
add incldead
add MR and MST
correct date parsing
add sort
add tpp info
This commit is contained in:
Garfield69 2021-07-08 16:57:46 +12:00
parent 6fbd7e0cf0
commit 671c10bf11
1 changed files with 47 additions and 5 deletions

View File

@ -66,6 +66,38 @@ caps:
modes: modes:
search: [q] search: [q]
settings:
- name: username
type: text
label: Username
- 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
default: added
options:
added: created
seeders: seeders
size: size
name: title
- name: type
type: select
label: Order requested from site
default: DESC
options:
DESC: desc
ASC: asc
- name: info_tpp
type: info
label: Results Per Page
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
login: login:
path: login.php path: login.php
method: form method: form
@ -81,6 +113,7 @@ login:
- selector: table:contains("Login failed!") - selector: table:contains("Login failed!")
test: test:
path: main.php path: main.php
selector: a[href^="logout.php?id="]
search: search:
paths: paths:
@ -88,6 +121,8 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 active, 1 incldead, 2 onlydead, 3 free, 4 exclusive, 5 neutral
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
titleonly: 1 titleonly: 1
# 0 Exact, 1 Fuzzy, 3 Parsed, 4 Simple # 2 Pure is not used # 0 Exact, 1 Fuzzy, 3 Parsed, 4 Simple # 2 Pure is not used
nonboolean: 0 nonboolean: 0
@ -103,8 +138,8 @@ search:
- name: querystring - name: querystring
args: cat args: cat
title: title:
filters: selector: a[href^="details.php?id="]
selector: td:nth-child(2) b attribute: title
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
@ -116,8 +151,10 @@ search:
date: date:
selector: td:nth-child(6) selector: td:nth-child(6)
filters: filters:
- name: regexp - name: append
args: (\d{4}-\d{2}-\d{2}) args: " +00:00" # auto adjusted by site account profile
- name: dateparse
args: "2006-01-0215:04:05 -07:00"
size: size:
selector: td:nth-child(7) selector: td:nth-child(7)
grabs: grabs:
@ -140,4 +177,9 @@ search:
case: case:
"font[color=\"green\"]": 0 "font[color=\"green\"]": 0
"*": 1 "*": 1
# engine tbd minimumratio:
text: 1.0
minimumseedtime:
# 1 day (as seconds = 24 x 60 x 60)
text: 86400
# XBTT TCG 0.98