1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-28 17:05:40 +00:00

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

View file

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