mirror of
https://github.com/Jackett/Jackett
synced 2025-03-05 19:29:03 +00:00
kickasstorrent-to: use UA resolves #9966
This commit is contained in:
parent
49d9229c93
commit
e391d6f623
1 changed files with 12 additions and 0 deletions
|
@ -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: "<ol><li>Access this tracker with your browser</li><li>Open the <b>DevTools</b> panel by pressing <b>F12</b></li><li>Select the <b>Network</b> tab</li><li>Click on the <b>Doc</b> button (Chrome Browser) or <b>HTML</b> button (FireFox)</li><li>Refresh the page by pressing <b>F5</b></li><li>Click on the first row entry</li><li>Select the <b>Headers</b> tab on the Right panel</li><li>Find <b>'user-agent:'</b> in the <b>Request Headers</b> section</li><li><b>Select</b> and <b>Copy</b> the whole user-agent string <i>(everything after 'user-agent: ')</i> and <b>Paste</b> here.</li></ol>"
|
||||
- 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"])
|
||||
|
|
Loading…
Add table
Reference in a new issue