From fadc46c381f6c40707304287604629ec2bef4974 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Thu, 3 Nov 2022 21:56:34 +1300 Subject: [PATCH] crazyhd: switch to cookie with UA method --- src/Jackett.Common/Definitions/crazyhd.yml | 31 +++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/src/Jackett.Common/Definitions/crazyhd.yml b/src/Jackett.Common/Definitions/crazyhd.yml index e70dff6a4..0c575842f 100644 --- a/src/Jackett.Common/Definitions/crazyhd.yml +++ b/src/Jackett.Common/Definitions/crazyhd.yml @@ -90,12 +90,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 @@ -118,19 +126,16 @@ settings: 1: asc login: - path: index.php - method: form - form: form[action="index.php?page=login"] + method: cookie inputs: - uid: "{{ .Config.username }}" - pwd: "{{ .Config.password }}" - error: - - selector: td.lista span[style="color:#FF0000;"] + cookie: "{{ .Config.cookie }}" test: - path: index.php + path: / selector: a[href="logout.php"] search: + headers: + User-Agent: ["{{ .Config.useragent }}"] paths: - path: index.php?page=searchlist method: post