teamhd: switch to cookie login. resolves #5728

This commit is contained in:
Garfield69 2019-07-26 07:26:27 +12:00
parent c7c19ddcb4
commit 842a1204e8
1 changed files with 24 additions and 7 deletions

View File

@ -27,14 +27,31 @@
tv-search: [q, season, ep]
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:
path: takelogin.php
method: post
method: cookie
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
error:
- selector: div.error
cookie: "{{ .Config.cookie }}"
test:
path: index.php
selector: a[href="/logout.php"]