electro-torrent: back to using login page. #!3951

This commit is contained in:
Garfield69
2024-10-14 14:04:50 +13:00
parent cb99ba8998
commit 1bbad5e2e7

View File

@@ -55,16 +55,12 @@ caps:
book-search: [q] book-search: [q]
settings: settings:
- name: cookie - name: username
type: text type: text
label: Cookie label: Username
- name: info_cookie - name: password
type: info_cookie type: password
- name: useragent label: Password
type: text
label: User-Agent
- name: info_useragent
type: info_useragent
- name: multilang - name: multilang
type: checkbox type: checkbox
label: Replace MULTi by another language in release name label: Replace MULTi by another language in release name
@@ -78,17 +74,25 @@ settings:
MULTi POLISH: MULTi POLISH MULTi POLISH: MULTi POLISH
login: login:
method: cookie path: logowanie
method: form
form: form[action="takelogin.php"]
captcha:
type: image
selector: img[src^="/img.php?size=3"]
input: vImageCodP
inputs: inputs:
cookie: "{{ .Config.cookie }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
returnto: ""
error:
- selector: div#center-side:contains("Logowanie nie")
test: test:
path: / path: /
selector: a[href$="/logout.php"] selector: a[href$="/logout.php"]
search: search:
# http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0 # http://electro-torrent.pl/szukaj.php?search=&typ=torrent&cat=0
headers:
User-Agent: ["{{ .Config.useragent }}"]
paths: paths:
- path: szukaj.php - path: szukaj.php
allowEmptyInputs: true allowEmptyInputs: true