azusa: swith to cookie method. resolves #14478

This commit is contained in:
Garfield69
2025-01-30 09:06:33 +13:00
parent 35d9439fed
commit 87778931e9

View File

@@ -22,19 +22,11 @@ caps:
book-search: [q] book-search: [q]
settings: settings:
- name: username - name: cookie
type: text type: text
label: Username label: Cookie
- name: password - name: info_cookie
type: password type: info_cookie
label: Password
- name: 2facode
type: text
label: 2FA code
- name: info_2fa
type: info
label: "About 2FA code"
default: "Only fill in the <b>2FA code</b> box if you have enabled <b>2FA</b> on the Uploads Web Site. Otherwise just leave it empty."
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Search freeleech only label: Search freeleech only
@@ -61,24 +53,10 @@ settings:
default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile. default: For best results, change the <b>Torrents per page:</b> setting to <b>100</b> on your account profile.
login: login:
path: login.php # using cookie method because site regularly disables login page for certain events during the year
method: form method: cookie
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[alt="CAPTCHA"]
input: imagestring
inputs: inputs:
secret: "" cookie: "{{ .Config.cookie }}"
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
two_step_code: "{{ .Config.2facode }}"
logout: ""
securelogin: ""
ssl: yes
trackerssl: ""
error:
- selector: td.embedded:has(h2:contains("失败"))
test: test:
path: index.php path: index.php
selector: a[href="logout.php"] selector: a[href="logout.php"]