hachede: switch to cookie login. (#5476) resolves #5474

This commit is contained in:
Víctor de la Rosa 2019-06-12 21:13:30 +02:00 committed by garfield69
parent 1cc62c0f7c
commit dffefa1044
1 changed files with 11 additions and 10 deletions

View File

@ -63,22 +63,23 @@
tv-search: [q, season, ep] tv-search: [q, season, ep]
movie-search: [q] movie-search: [q]
settings:
- name: cookie
type: text
label: Cookie
- name: info
type: info
label: How to get the Cookie
default: "<ol><li>Login to this tracker in 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: ajax/login.php method: cookie
method: post
headers: headers:
user-agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36" user-agent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36"
form: form
inputs: inputs:
loginbox_membername: "{{ .Config.username }}" cookie: "{{ .Config.cookie }}"
loginbox_password: "{{ .Config.password }}"
action: "login"
loginbox_remember: "true"
error:
- selector: div.error
test: test:
path: ?p=home&pid=1 path: ?p=home&pid=1
selector: div#member_info_bar
search: search:
path: / path: /