mirror of https://github.com/Jackett/Jackett
teamhd: switch to cookie login. resolves #5728
This commit is contained in:
parent
c7c19ddcb4
commit
842a1204e8
|
@ -27,18 +27,35 @@
|
||||||
tv-search: [q, season, ep]
|
tv-search: [q, season, ep]
|
||||||
movie-search: [q]
|
movie-search: [q]
|
||||||
|
|
||||||
|
# login:
|
||||||
|
# path: takelogin.php
|
||||||
|
# method: post
|
||||||
|
# inputs:
|
||||||
|
# username: "{{ .Config.username }}"
|
||||||
|
# password: "{{ .Config.password }}"
|
||||||
|
# error:
|
||||||
|
# - selector: div.error
|
||||||
|
# test:
|
||||||
|
# path: index.php
|
||||||
|
# selector: a[href="/logout.php"]
|
||||||
|
|
||||||
|
settings:
|
||||||
|
- name: cookie
|
||||||
|
type: text
|
||||||
|
label: Cookie
|
||||||
|
- name: info
|
||||||
|
type: info
|
||||||
|
label: How to get the Cookie
|
||||||
|
default: "<ol><li>Login to this tracker with your browser<li>Open the <b>DevTools</b> panel by pressing <b>F12</b><li>Select the <b>Network</b> tab<li>Click on the <b>Doc</b> button<li>Refresh the page by pressing <b>F5</b><li>Select the <b>Headers</b> tab<li>Find 'cookie:' in the <b>Request Headers</b> section<li>Copy & paste the whole cookie string to here.</ol>"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: takelogin.php
|
method: cookie
|
||||||
method: post
|
|
||||||
inputs:
|
inputs:
|
||||||
username: "{{ .Config.username }}"
|
cookie: "{{ .Config.cookie }}"
|
||||||
password: "{{ .Config.password }}"
|
|
||||||
error:
|
|
||||||
- selector: div.error
|
|
||||||
test:
|
test:
|
||||||
path: index.php
|
path: index.php
|
||||||
selector: a[href="/logout.php"]
|
selector: a[href="/logout.php"]
|
||||||
|
|
||||||
search:
|
search:
|
||||||
paths:
|
paths:
|
||||||
- path: browse
|
- path: browse
|
||||||
|
|
Loading…
Reference in New Issue