From e391d6f623a03820a3bea6fb514390902c33b7c7 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 8 Dec 2024 17:14:20 +1300 Subject: [PATCH] kickasstorrent-to: use UA resolves #9966 --- .../Definitions/kickasstorrents-to.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Jackett.Common/Definitions/kickasstorrents-to.yml b/src/Jackett.Common/Definitions/kickasstorrents-to.yml index 55dc34cd8..faa65c39b 100644 --- a/src/Jackett.Common/Definitions/kickasstorrents-to.yml +++ b/src/Jackett.Common/Definitions/kickasstorrents-to.yml @@ -41,6 +41,13 @@ caps: book-search: [q] settings: + - name: useragent + type: text + label: User-Agent + - name: info_useragent + type: info + label: How to get the User-Agent + default: "
  1. Access 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 'user-agent:' in the Request Headers section
  9. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" - name: sort type: select label: Sort requested from site @@ -63,6 +70,9 @@ download: attribute: href search: + headers: + User-Agent: ["{{ .Config.useragent }}"] + paths: # 20 rows per page - path: "{{ if .Keywords }}usearch/{{ .Keywords }}/{{ else }}new/{{ end }}?sortby={{ .Config.sort }}&sort={{ .Config.type }}" @@ -73,6 +83,8 @@ search: error: - selector: h1:contains("403 Forbidden") + message: + text: "Site returned 403 Forbidden. Try updating your indexer config with a new/different user-agent." rows: selector: table.data tr.odd:has(a[class="cellMainLink"]), table.data tr.even:has(a[class="cellMainLink"])