From 3dcfd990cb1678b705e5db8bb526c195f1034ca4 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sun, 5 Apr 2020 19:19:55 +1200 Subject: [PATCH] cpabien: add cokie and user-agent method. resolves #7974 --- src/Jackett.Common/Definitions/cpabien.yml | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Definitions/cpabien.yml b/src/Jackett.Common/Definitions/cpabien.yml index 8c98c1373..964472811 100644 --- a/src/Jackett.Common/Definitions/cpabien.yml +++ b/src/Jackett.Common/Definitions/cpabien.yml @@ -51,7 +51,28 @@ tv-search: [q, season, ep] movie-search: [q] - settings: [] + settings: + - name: cookie + type: text + label: Cookie + - name: info_cookie + 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
  5. Refresh the page by pressing F5
  6. Select the Headers tab
  7. Find 'cookie:' in the Request Headers section
  8. Select and Copy the whole cookie string (everything after 'cookie: ') and Paste here.
" + - name: useragent + type: text + label: User-Agent + 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.
" + + login: + method: cookie + inputs: + cookie: "{{ .Config.cookie }}" + user-agent: "[ .Config.useragent ]" download: selector: a[href^="magnet:?xt="]