From af1002d57ecf1eda99566c61df74bcccb8040f4d Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 15 Jan 2022 06:13:10 +1300 Subject: [PATCH] Revert "spidertk: switch to cookie method. resolves #12718" This reverts commit b17c2482d0693c4881c2f9807d5704dd920f2761. --- src/Jackett.Common/Definitions/spidertk.yml | 37 +++++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/src/Jackett.Common/Definitions/spidertk.yml b/src/Jackett.Common/Definitions/spidertk.yml index 1fd1144e5..4cccda1cb 100644 --- a/src/Jackett.Common/Definitions/spidertk.yml +++ b/src/Jackett.Common/Definitions/spidertk.yml @@ -71,13 +71,19 @@ caps: book-search: [q] settings: - - name: cookie + - name: username type: text - label: Cookie - - name: info + label: Username + - name: password + type: password + label: Password + - name: 2facode + type: text + label: 2FA code + - name: info_2fa 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 (Chrome Browser) or HTML button (FireFox)
  5. Refresh the page by pressing F5
  6. Click on the first row entry
  7. Select the Headers tab on the Right panel
  8. Find 'cookie:' in the Request Headers section
  9. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + label: "About 2FA code" + default: "Only fill in the 2FA code box if you have enabled 2FA on the SpiderTK Web Site. Otherwise just leave it empty." - name: freeleech type: checkbox label: Search freeleech only @@ -104,9 +110,26 @@ settings: asc: asc login: - method: cookie + path: login.php + method: form + form: form[action="takelogin.php"] + captcha: + type: image + selector: img[alt="CAPTCHA"] + input: imagestring inputs: - cookie: "{{ .Config.cookie }}" + username: "{{ .Config.username }}" + password: "{{ .Config.password }}" + two_step_code: "{{ .Config.2facode }}" + logout: "" + securelogin: "" + ssl: yes + trackerssl: "" + error: + - selector: td.embedded:has(h2:contains("Echoué")) # invalid captcha + - selector: td.embedded:has(h2:contains("Échec")) # invalid uid or pwd + message: + selector: td.text test: path: index.php selector: a[href="logout.php"]