mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 13:52:03 +00:00
hdtime: add 2fa support and update login inputs (#13928)
This commit is contained in:
parent
059d46a715
commit
5b4596b54b
1 changed files with 27 additions and 13 deletions
|
@ -38,6 +38,13 @@ settings:
|
||||||
- name: password
|
- name: password
|
||||||
type: password
|
type: password
|
||||||
label: Password
|
label: Password
|
||||||
|
- name: 2facode
|
||||||
|
type: text
|
||||||
|
label: 2FA code
|
||||||
|
- name: info_2fa
|
||||||
|
type: info
|
||||||
|
label: "About 2FA code"
|
||||||
|
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the HDtime Web Site. Otherwise just leave it empty."
|
||||||
- name: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Search freeleech only
|
||||||
|
@ -67,11 +74,14 @@ login:
|
||||||
path: takelogin.php
|
path: takelogin.php
|
||||||
method: post
|
method: post
|
||||||
inputs:
|
inputs:
|
||||||
loginmethod: username
|
secret: ""
|
||||||
username: "{{ .Config.username }}"
|
username: "{{ .Config.username }}"
|
||||||
password: "{{ .Config.password }}"
|
password: "{{ .Config.password }}"
|
||||||
dutime: month
|
two_step_code: "{{ .Config.2facode }}"
|
||||||
|
logout: ""
|
||||||
|
securelogin: ""
|
||||||
ssl: yes
|
ssl: yes
|
||||||
|
trackerssl: yes
|
||||||
error:
|
error:
|
||||||
- selector: td.embedded:has(h2:contains("失败"))
|
- selector: td.embedded:has(h2:contains("失败"))
|
||||||
- selector: td.embedded:has(h2:contains("Failed"))
|
- selector: td.embedded:has(h2:contains("Failed"))
|
||||||
|
@ -84,12 +94,12 @@ search:
|
||||||
- path: torrents.php
|
- path: torrents.php
|
||||||
inputs:
|
inputs:
|
||||||
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
|
$raw: "{{ range .Categories }}cat{{.}}=1&{{end}}"
|
||||||
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if .Query.DoubanID }}/{{ .Query.DoubanID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }}{{ else }}{{ .Keywords }}{{ end }}"
|
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ end }}{{ if or .Query.IMDBID .Query.DoubanID }} {{ else }}{{ .Keywords }}{{ end }}{{ if .Query.DoubanID }}{{ .Query.DoubanID }}{{ else }}{{ end }}"
|
||||||
# 0 incldead, 1 active, 2 dead
|
# 0 incldead, 1 active, 2 dead
|
||||||
incldead: 0
|
incldead: 0
|
||||||
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
|
# 0 all, 1 normal, 2 free, 3 2x, 4 2xfree, 5 50%, 6 2x50%, 7 30%
|
||||||
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
|
spstate: "{{ if .Config.freeleech }}2{{ else }}0{{ end }}"
|
||||||
# 0 title, 1 descr, 3 uploader, 4 imdburl (4 does not appear to work).
|
# 0 title, 1 descr, 3 uploader, 4 imdburl (not working)
|
||||||
search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}1{{ else }}0{{ end }}"
|
search_area: "{{ if or .Query.IMDBID .Query.DoubanID }}1{{ else }}0{{ end }}"
|
||||||
# 0 AND, 1 OR, 2 exact
|
# 0 AND, 1 OR, 2 exact
|
||||||
search_mode: 0
|
search_mode: 0
|
||||||
|
@ -124,9 +134,13 @@ search:
|
||||||
# site currently only has a badge and rating, the id is not present. just in case a future update.
|
# site currently only has a badge and rating, the id is not present. just in case a future update.
|
||||||
selector: a[href*="imdb.com/title/tt"]
|
selector: a[href*="imdb.com/title/tt"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
doubanid:
|
||||||
|
# site currently only has a badge and rating, the id is not present. just in case a future update.
|
||||||
|
selector: a[href*="movie.douban.com/subject/"]
|
||||||
|
attribute: href
|
||||||
date_elapsed:
|
date_elapsed:
|
||||||
# time type: time elapsed (default)
|
# time type: time elapsed (default)
|
||||||
selector: td:nth-child(4) > span[title]
|
selector: td.rowfollow:nth-child(4) > span[title]
|
||||||
attribute: title
|
attribute: title
|
||||||
optional: true
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
|
@ -136,7 +150,7 @@ search:
|
||||||
args: "2006-01-02 15:04:05 -07:00"
|
args: "2006-01-02 15:04:05 -07:00"
|
||||||
date_added:
|
date_added:
|
||||||
# time added
|
# time added
|
||||||
selector: td:nth-child(4):not(:has(span))
|
selector: td.rowfollow:nth-child(4):not(:has(span))
|
||||||
optional: true
|
optional: true
|
||||||
filters:
|
filters:
|
||||||
- name: append
|
- name: append
|
||||||
|
@ -146,13 +160,13 @@ search:
|
||||||
date:
|
date:
|
||||||
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
|
text: "{{ if or .Result.date_elapsed .Result.date_added }}{{ or .Result.date_elapsed .Result.date_added }}{{ else }}now{{ end }}"
|
||||||
size:
|
size:
|
||||||
selector: td:nth-child(5)
|
selector: td.rowfollow:nth-child(5)
|
||||||
seeders:
|
seeders:
|
||||||
selector: td:nth-child(6)
|
selector: td.rowfollow:nth-child(6)
|
||||||
leechers:
|
leechers:
|
||||||
selector: td:nth-child(7)
|
selector: td.rowfollow:nth-child(7)
|
||||||
grabs:
|
grabs:
|
||||||
selector: td:nth-child(8)
|
selector: td.rowfollow:nth-child(8)
|
||||||
downloadvolumefactor:
|
downloadvolumefactor:
|
||||||
case:
|
case:
|
||||||
img.pro_free: 0
|
img.pro_free: 0
|
||||||
|
@ -168,8 +182,8 @@ search:
|
||||||
img.pro_2up: 2
|
img.pro_2up: 2
|
||||||
"*": 1
|
"*": 1
|
||||||
minimumratio:
|
minimumratio:
|
||||||
text: 0.8
|
text: 0.81
|
||||||
description:
|
description:
|
||||||
selector: td:nth-child(2)
|
selector: td.rowfollow:nth-child(2)
|
||||||
remove: a, img
|
remove: a, img
|
||||||
# NexusPHP v1.7.4
|
# NexusPHP v1.7.33 2023-01-04
|
||||||
|
|
Loading…
Add table
Reference in a new issue