From 8e62b48457b98d6d7db3fcbdbefa25f6d14f7fb7 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 22 Jun 2023 09:31:57 +1200 Subject: [PATCH] torrentmasters: switch to cookie+UA because ReCaptcha --- .../Definitions/torrentmasters.yml | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/Jackett.Common/Definitions/torrentmasters.yml b/src/Jackett.Common/Definitions/torrentmasters.yml index 3191c7776..42d6d7ae8 100644 --- a/src/Jackett.Common/Definitions/torrentmasters.yml +++ b/src/Jackett.Common/Definitions/torrentmasters.yml @@ -48,12 +48,20 @@ caps: book-search: [q] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password + 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 (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.
" + - name: useragent + type: text + label: User-Agent + - name: info_useragent + type: info + label: How to get the User-Agent + default: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" - name: freeleech type: checkbox label: Search FreeLeech only @@ -80,16 +88,12 @@ settings: default: For best results, change the Torrentek száma egy oldalon setting to 100 on your account profile. login: - method: post - path: takelogin.php + method: cookie inputs: - username: "{{ .Config.username }}" - password: "{{ .Config.password }}" - error: - - selector: "table:contains(\"Hibás belépés\")" + cookie: "{{ .Config.cookie }}" test: path: index.php - selector: a[href^="logout.php"] + selector: a[href^="/logout"] download: selectors: @@ -97,6 +101,8 @@ download: attribute: href search: + headers: + User-Agent: ["{{ .Config.useragent }}"] paths: - path: letoltes.php inputs: