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"])