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:
- Nexus Master or later will not be deleted account.
- Veteran User or higher will not be deleted if temporarily locked (at User Settings).
- Temporarily locked accounts will be deleted if not logged in within 90 days.
- Accounts that are not temporarily locked will be deleted if they do not log in within 60 days.
- 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"]