From 257327da4a321a06fa2b208993c9b8b146b57e6b Mon Sep 17 00:00:00 2001 From: Sen Jiang Date: Tue, 2 Nov 2021 20:58:39 -0700 Subject: [PATCH] mteamtp2fa: add user agent to fix redirection (#12499) fix #6830 --- src/Jackett.Common/Definitions/mteamtp2fa.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Jackett.Common/Definitions/mteamtp2fa.yml b/src/Jackett.Common/Definitions/mteamtp2fa.yml index ea44642b7..f1d11fb51 100644 --- a/src/Jackett.Common/Definitions/mteamtp2fa.yml +++ b/src/Jackett.Common/Definitions/mteamtp2fa.yml @@ -64,6 +64,13 @@ settings: type: info label: How to get the Cookie default: "
  1. Login to 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 'cookie:' in the Request Headers section
  9. 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: "
  1. From the same place you fetched the cookie,
  2. Find 'user-agent:' in the Request Headers section
  3. Select and Copy the whole user-agent string (everything after 'user-agent: ') and Paste here.
" - name: freeleech type: checkbox label: Search freeleech only @@ -123,6 +130,9 @@ search: sort: "{{ .Config.sort }}" type: "{{ .Config.type }}" + headers: + User-Agent: ["{{ .Config.useragent }}"] + rows: selector: table.torrents > tbody > tr:has(table.torrentname)