From 3257c8e759cc4d4cf4cf92fa38f9fd9a96121df5 Mon Sep 17 00:00:00 2001 From: Diego Heras Date: Tue, 24 Mar 2020 19:20:16 +0100 Subject: [PATCH] blutopia: login with user/pass and fix login redirect (#7834) --- src/Jackett.Common/Definitions/blutopia.yml | 28 +++++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/Jackett.Common/Definitions/blutopia.yml b/src/Jackett.Common/Definitions/blutopia.yml index 84f44f750..8323f11ba 100644 --- a/src/Jackett.Common/Definitions/blutopia.yml +++ b/src/Jackett.Common/Definitions/blutopia.yml @@ -22,13 +22,12 @@ movie-search: [q, imdbid] 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. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + label: Username + - name: password + type: password + label: Password - name: sort type: select label: Sort requested from site @@ -47,12 +46,19 @@ "asc": "asc" login: - method: cookie + path: login + method: form + form: form[action*="/login"] inputs: - cookie: "{{ .Config.cookie }}" - test: - path: / - selector: a[href$="/logout"] + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + remember: 1 + selectorinputs: + _token: + selector: input[name="_token"] + attribute: value + error: + - selector: div#ERROR_COPY ratio: path: /