Revert "spiritofrevolution: switch to cookie method. #7512"

This reverts commit 3cd459ef32.
This commit is contained in:
Garfield69 2020-04-08 06:45:52 +12:00
parent 6dc00de864
commit f049d7ce97
1 changed files with 23 additions and 8 deletions

View File

@ -56,13 +56,12 @@
movie-search: [q, imdbid]
settings:
- name: cookie
- name: username
type: text
label: Cookie
- name: info_cookie
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 <b>'cookie:'</b> in the <b>Request Headers</b> section<li><b>Select</b> and <b>Copy</b> the whole cookie string <i>(everything after 'cookie: ')</i> and <b>Paste</b> here.</ol>"
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
@ -81,9 +80,25 @@
"asc": "asc"
login:
method: cookie
path: haustuer.php
method: form
form: form[action="haustuer.php"]
cookies: ["JAVA=OK"] # avoid jscheck redirect
inputs:
cookie: "{{ .Config.cookie }}"
input[id="username"]: "{{ .Config.username }}"
input[id="password"]: "{{ .Config.password }}"
input[name="loginkeeping"]: loginkeeping
input[name="loginnow"]: yes
selectors: true
selectorinputs:
uufl:
selector: input[name="uufl"]
attribute: value
uupf:
selector: input[name="uupf"]
attribute: value
error:
- selector: "div[style=\"color: #EC0000;\"]"
test:
path: index.php
selector: a[href="logout.php"]