From c74e8ee4376c34f0940b80180f7a61f74af52a1a Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Sat, 6 May 2023 17:42:49 +0100 Subject: [PATCH] pignetwork: change to cookie login, login page disabled. resolves #14310 --- src/Jackett.Common/Definitions/pignetwork.yml | 29 ++++++------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/src/Jackett.Common/Definitions/pignetwork.yml b/src/Jackett.Common/Definitions/pignetwork.yml index 56c469328..b5e9b479b 100644 --- a/src/Jackett.Common/Definitions/pignetwork.yml +++ b/src/Jackett.Common/Definitions/pignetwork.yml @@ -33,12 +33,13 @@ caps: music-search: [q] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password + label: Cookie + - name: info + 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: freeleech type: checkbox label: Search freeleech only @@ -69,23 +70,11 @@ settings: default: Access your 个人中心 网站设定 (UserCP Website settings) and set 时间显示类型 (Time Display Type) to 发生时间 (Time of Occurence). Elapsed Time is not supported by this indexer and will see zero results. login: - path: login.php - method: form - form: form[action="takelogin.php"] - captcha: - type: image - selector: img[alt="CAPTCHA"] - input: imagestring + method: cookie inputs: - username: "{{ .Config.username }}" - password: "{{ .Config.password }}" - logout: "" - securelogin: "" - error: - - selector: td.embedded:has(h2:contains("失败")) + cookie: "{{ .Config.cookie }}" test: - path: index.php - selector: a[href="logout.php"] + path: torrents.php search: paths: