spiritofrevolution: switch to cookie method. #7512

This commit is contained in:
Garfield69
2020-04-07 19:47:29 +12:00
parent cf9a517c8c
commit 3cd459ef32

View File

@@ -56,12 +56,13 @@
movie-search: [q, imdbid] movie-search: [q, imdbid]
settings: settings:
- name: username - name: cookie
type: text type: text
label: Username label: Cookie
- name: password - name: info_cookie
type: password type: info
label: Password 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>"
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
@@ -80,25 +81,9 @@
"asc": "asc" "asc": "asc"
login: login:
path: haustuer.php method: cookie
method: form
form: form[action="haustuer.php"]
cookies: ["JAVA=OK"] # avoid jscheck redirect
inputs: inputs:
input[id="username"]: "{{ .Config.username }}" cookie: "{{ .Config.cookie }}"
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: test:
path: index.php path: index.php
selector: a[href="logout.php"] selector: a[href="logout.php"]