audiobookbay: loginbeforedownload. resolves #5702

This commit is contained in:
Garfield69
2019-07-27 18:33:02 +12:00
parent 162966a40d
commit 72f9c24ab2

View File

@@ -7,6 +7,8 @@
encoding: UTF-8 encoding: UTF-8
links: links:
- http://audiobookbay.nl/ - http://audiobookbay.nl/
legacylinks:
- https://audiobookbay.nl/
- https://audiobookbay.la/ - https://audiobookbay.la/
caps: caps:
@@ -74,8 +76,8 @@
search: [q] search: [q]
login: login:
path: https://audiobookbay.nl/member/login.php path: member/login.php
form: form[action="https://audiobookbay.nl/member/login.php"] form: form[action$="/member/login.php"]
method: post method: post
form: form form: form
inputs: inputs:
@@ -88,8 +90,13 @@
path: /member/users/ path: /member/users/
download: download:
selector: a[href^="/download?"] method: get
attribute: href before:
path: member/login.php
method: "post"
inputs:
username: "{{ .Config.username }}"
password: "{{ .Config.password }}"
search: search:
paths: paths:
@@ -110,8 +117,11 @@
selector: div.postTitle h2 a selector: div.postTitle h2 a
attribute: href attribute: href
download: download:
selector: a[href^="/audio-books/"] selector: a[href^="/dl-now?f="]
attribute: href attribute: href
filters:
- name: replace
args: ["/dl-now?f=", "/download?f="]
banner: banner:
optional: true optional: true
selector: img selector: img