1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-01 04:38:20 +00:00

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