hdme: imdbid search support. resolves #8742

add config sort options
add minimumratio and minimumseedtime
This commit is contained in:
Garfield69 2020-05-23 08:53:38 +12:00
parent ff48308d99
commit f2643d3336
1 changed files with 47 additions and 11 deletions

View File

@ -39,15 +39,38 @@ caps:
- {id: 40, cat: XXX, desc: "XXX"}
modes:
search: [q]
tv-search: [q, season, ep]
movie-search: [q]
search: [q, imdbid]
tv-search: [q, season, ep, imdbid]
movie-search: [q, imdbid]
music-search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- 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"
login:
path: takelogin.php
method: post
form: form
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
@ -57,6 +80,7 @@ login:
selector: td.text
test:
path: my.php
selector: a[href="logout.php"]
ratio:
path: my.php
@ -71,12 +95,18 @@ search:
paths:
- path: browse.php
inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}"
search: "{{ .Keywords }}"
incldead: "1"
blah: "0"
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active, 1 incldead, 2 onlydead, 3 onlyfree
incldead: 1
# 0 name, 1 descr, 2 both
blah: "{{ if .Query.IMDBID }}1{{ else }}0{{ end }}"
sort: "{{ .Config.sort }}"
d: "{{ .Config.type }}"
rows:
selector: table[width="100%"] > tbody > tr:has(td.bottom[background="_images/bg_torrent.jpg"])
fields:
category:
selector: td:nth-child(2) a
@ -112,7 +142,13 @@ search:
selector: td:nth-child(9)
downloadvolumefactor:
case:
"font:contains(\"(FreeLeech)\")": "0"
"*": "1"
"font:contains(\"(FreeLeech)\")": 0
"*": 1
uploadvolumefactor:
text: "1"
text: 1
minimumratio:
text: 1.1
minimumseedtime:
# 3 day
text: 259200
# engine n/a