From 0cabbd68c5fc8e6d0f48ffdc11822f4e71eede8d Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Fri, 6 Mar 2020 14:35:03 +1300 Subject: [PATCH] spiritofevolution: fix login. resolves #7512 --- .../Definitions/spiritofrevolution.yml | 31 ++++++++++++++----- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/src/Jackett.Common/Definitions/spiritofrevolution.yml b/src/Jackett.Common/Definitions/spiritofrevolution.yml index 6ed262fcd..8d70c8e03 100644 --- a/src/Jackett.Common/Definitions/spiritofrevolution.yml +++ b/src/Jackett.Common/Definitions/spiritofrevolution.yml @@ -56,13 +56,12 @@ movie-search: [q] settings: - - name: cookie + - name: username type: text - label: Cookie - - name: info - type: info - label: How to get the Cookie - default: "
  1. Login to this tracker with your browser
  2. Open the DevTools panel by pressing F12
  3. Select the Network tab
  4. Click on the Doc button
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Copy & paste the whole cookie string to here.
" + 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"]