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: "
- Access this tracker with your browser
- Open the DevTools panel by pressing F12
- Select the Network tab
- Click on the Doc button (Chrome Browser) or HTML button (FireFox)
- Refresh the page by pressing F5
- Click on the first row entry
- Select the Headers tab on the Right panel
- Find 'user-agent:' in the Request Headers section
- 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"])