diff --git a/src/Jackett.Common/Definitions/azusa.yml b/src/Jackett.Common/Definitions/azusa.yml index 2baed210d..e64a48cde 100644 --- a/src/Jackett.Common/Definitions/azusa.yml +++ b/src/Jackett.Common/Definitions/azusa.yml @@ -22,19 +22,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 Uploads Web Site. Otherwise just leave it empty." + label: Cookie + - name: info_cookie + type: info_cookie - name: freeleech type: checkbox label: Search freeleech only @@ -61,24 +53,10 @@ settings: default: For best results, change the Torrents per page: setting to 100 on your account profile. login: - path: login.php - method: form - form: form[action="takelogin.php"] - captcha: - type: image - selector: img[alt="CAPTCHA"] - input: imagestring + # using cookie method because site regularly disables login page for certain events during the year + method: cookie inputs: - secret: "" - username: "{{ .Config.username }}" - password: "{{ .Config.password }}" - two_step_code: "{{ .Config.2facode }}" - logout: "" - securelogin: "" - ssl: yes - trackerssl: "" - error: - - selector: td.embedded:has(h2:contains("失败")) + cookie: "{{ .Config.cookie }}" test: path: index.php selector: a[href="logout.php"]