From 14a7ad37cbb948d0398a6e009bdf78295c6f756b Mon Sep 17 00:00:00 2001
From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
Date: Sun, 12 Dec 2021 03:20:41 +0000
Subject: [PATCH] Revert "yggcookie: change UA to bypass cloudflare"
https://github.com/Jackett/Jackett/issues/12168
---
src/Jackett.Common/Definitions/yggcookie.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/Jackett.Common/Definitions/yggcookie.yml b/src/Jackett.Common/Definitions/yggcookie.yml
index ffc09e8d8..564117ab6 100644
--- a/src/Jackett.Common/Definitions/yggcookie.yml
+++ b/src/Jackett.Common/Definitions/yggcookie.yml
@@ -112,6 +112,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: category
type: select
label: Catégorie
@@ -216,7 +223,7 @@ search:
followredirect: true
headers:
- User-Agent: ["YggRobot"]
+ User-Agent: ["{{ .Config.useragent }}"]
rows:
selector: table.table > tbody > tr