Skip to content
Permalink
Browse files

hdme: imdbid search support. resolves #8742

add config sort options
add minimumratio and minimumseedtime
  • Loading branch information
garfield69 committed May 22, 2020
1 parent ff48308 commit f2643d3336592c25354e76a35853808a30c37ea5
Showing with 47 additions and 11 deletions.
  1. +47 −11 src/Jackett.Common/Definitions/hdme.yml
@@ -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

0 comments on commit f2643d3

Please sign in to comment.
You can’t perform that action at this time.