bitspyder: fix login. resolves #7287

also add sort options in config
This commit is contained in:
Garfield69
2020-02-22 13:36:28 +13:00
parent 471ab7f204
commit a3dc1b295b

View File

@@ -6,6 +6,8 @@
type: private type: private
encoding: windows-1252 encoding: windows-1252
links: links:
- https://bitspyder.net/
legacylinks:
- http://bitspyder.net/ - http://bitspyder.net/
caps: caps:
@@ -47,9 +49,34 @@
modes: modes:
search: [q] search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: sort
type: select
label: Sort requested from site
default: "8"
options:
"8": "created"
"6": "seeders"
"4": "size"
"1": "title"
- name: type
type: select
label: Order requested from site
default: "desc"
options:
"desc": "desc"
"asc": "asc"
login: login:
path: processf.php path: login.php
method: post method: form
form: form
inputs: inputs:
username: "{{ .Config.username }}" username: "{{ .Config.username }}"
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
@@ -61,17 +88,20 @@
search: search:
paths: paths:
- path: browse.php - path: browse.php
method: post
inputs: inputs:
search: "{{ .Keywords }}" search: "{{ .Keywords }}"
# 0 active 1 incldead 2 onlydead # 0 active 1 incldead 2 onlydead
incldead: 1 incldead: 1
# 0 title 1 default # 0 title 1 default
scope: 1 scope: 1
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
rows: rows:
selector: table > tbody > tr[class] selector: table > tbody > tr[class]
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
# there are two styles, we support both # there are two styles, we support both
title: title:
@@ -101,7 +131,7 @@
selector: td.rowcol:nth-child(7):has(br), td.clear:nth-child(4) selector: td.rowcol:nth-child(7):has(br), td.clear:nth-child(4)
filters: filters:
- name: regexp - name: regexp
args: ([\d,]+) args: (\d+)
seeders: seeders:
selector: td.rowcol:nth-last-child(3) selector: td.rowcol:nth-last-child(3)
leechers: leechers:
@@ -138,3 +168,4 @@
description: description:
optional: true optional: true
selector: font[color="#990000"] selector: font[color="#990000"]
# custom v4