From c1fc63b8c64f83077695700b1db9dc83477210a6 Mon Sep 17 00:00:00 2001
From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
Date: Mon, 30 Jan 2023 18:13:56 +0000
Subject: [PATCH] korsar: add useragent. resolves #13949
---
src/Jackett.Common/Definitions/korsar.yml | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/Jackett.Common/Definitions/korsar.yml b/src/Jackett.Common/Definitions/korsar.yml
index 239a01cfe..8f1ad2a1e 100644
--- a/src/Jackett.Common/Definitions/korsar.yml
+++ b/src/Jackett.Common/Definitions/korsar.yml
@@ -439,6 +439,13 @@ settings:
type: info
label: How to get the Cookie
default: "
- Login to 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 'cookie:' in the Request Headers section
- 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: "- From the same place you fetched the cookie,
- 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
@@ -464,6 +471,9 @@ login:
path: index.php
search:
+ headers:
+ User-Agent: ["{{ .Config.useragent }}"]
+
paths:
# http://filbi1976.org/search.php?t=0&cs=1&cs_post=1&sc=1&keywords=&cs_where=title&cs_forb=&submit=Hand+Search&fid%5B%5D=0&cs_format=0&cs_year=0&cs_filter=0&sk=nt&sd=d&cs_private=0
- path: search.php