From 00a051945b7cb7f7995e0d4c4e8e5ffc19095183 Mon Sep 17 00:00:00 2001 From: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com> Date: Tue, 5 Aug 2025 00:37:08 +0100 Subject: [PATCH] 3changtrai: change to cookie login #16092 https://github.com/Prowlarr/Indexers/issues/558 --- src/Jackett.Common/Definitions/3changtrai.yml | 37 +++---------------- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/src/Jackett.Common/Definitions/3changtrai.yml b/src/Jackett.Common/Definitions/3changtrai.yml index 7d5965e46..27fbe6a04 100644 --- a/src/Jackett.Common/Definitions/3changtrai.yml +++ b/src/Jackett.Common/Definitions/3changtrai.yml @@ -28,19 +28,11 @@ caps: book-search: [q] settings: - - name: username + - name: cookie type: text - label: Username - - name: password - type: password - label: Password - - name: 2facode - type: text - label: 2FA code - - name: info_2fa - type: info - label: "About 2FA code" - default: "Only fill in the 2FA code box if you have enabled 2FA on the 1ptbar Web Site. Otherwise just leave it empty." + label: Cookie + - name: info_cookie + type: info_cookie - name: freeleech type: checkbox label: Search freeleech only @@ -73,26 +65,9 @@ settings: default: "Cherish your account. Inactive accounts will be deleted based on the following provisions:
  1. Nexus Master or later will not be deleted account.
  2. Veteran User or higher will not be deleted if temporarily locked (at User Settings).
  3. Temporarily locked accounts will be deleted if not logged in within 90 days.
  4. Accounts that are not temporarily locked will be deleted if they do not log in within 60 days.
  5. Accounts with no storage for uploads and downloads will be deleted if they do not log in within 30 days or have registered within 14 days.
" 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 }}" - two_step_code: "{{ .Config.2facode }}" - logout: "" - securelogin: "" - ssl: yes - trackerssl: yes - error: - - selector: td.embedded:has(h2:contains("Đăng nhập thất bại!")) # Login failed! - - selector: td.embedded:has(h2:contains("Login failed")) - - selector: td.embedded:has(h2:contains("Thất bại")) # Failure (captcha) - - selector: td.embedded:has(h2:contains("Failed")) + cookie: "{{ .Config.cookie }}" test: path: index.php selector: a[href="logout.php"]