mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
byrbt: switch to cookie method. resolves #15813
This commit is contained in:
@@ -28,12 +28,11 @@ caps:
|
|||||||
music-search: [q]
|
music-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: freeleech
|
- name: freeleech
|
||||||
type: checkbox
|
type: checkbox
|
||||||
label: Search freeleech only
|
label: Search freeleech only
|
||||||
@@ -68,16 +67,10 @@ settings:
|
|||||||
default: "Account retention rules:<ol><li>Newly registered users who have not generated any traffic within 14 days (that is, the upload/download data are both 0) will be deleted</li><li>Users with a user level of Peasant that have failed to successfully improve their sharing rate within 14 days will be deleted.</li></ol>"
|
default: "Account retention rules:<ol><li>Newly registered users who have not generated any traffic within 14 days (that is, the upload/download data are both 0) will be deleted</li><li>Users with a user level of Peasant that have failed to successfully improve their sharing rate within 14 days will be deleted.</li></ol>"
|
||||||
|
|
||||||
login:
|
login:
|
||||||
path: login.php
|
# using cookie method because login page is dynamically generated with JS
|
||||||
method: form
|
method: cookie
|
||||||
form: form[action="takelogin.php"]
|
|
||||||
inputs:
|
inputs:
|
||||||
logintype: username
|
cookie: "{{ .Config.cookie }}"
|
||||||
userinput: "{{ .Config.username }}"
|
|
||||||
password: "{{ .Config.password }}"
|
|
||||||
autologin: yes
|
|
||||||
error:
|
|
||||||
- selector: td.embedded:has(h2:contains("失败"))
|
|
||||||
test:
|
test:
|
||||||
path: index.php
|
path: index.php
|
||||||
selector: a[href^="logout.php?key="]
|
selector: a[href^="logout.php?key="]
|
||||||
|
Reference in New Issue
Block a user