thevault: update download link

This commit is contained in:
Garfield69 2019-09-03 06:33:19 +12:00
parent c9c91e3603
commit e64cef1daa
1 changed files with 3 additions and 9 deletions

View File

@ -80,15 +80,12 @@
test: test:
path: main.php path: main.php
download:
selector: a[href^="download.php"]
search: search:
paths: paths:
- path: browse.php - path: browse.php
inputs: inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
search: "{{ .Query.Keywords }}" search: "{{ .Keywords }}"
rows: rows:
selector: table[border="0"] > tbody > tr.ttable:has(a[href^="browse.php?cat="]) selector: table[border="0"] > tbody > tr.ttable:has(a[href^="browse.php?cat="])
fields: fields:
@ -102,11 +99,8 @@
filters: filters:
selector: td:nth-child(2) b selector: td:nth-child(2) b
download: download:
selector: a[href^="details.php?id="] selector: a[href^="download.php/"]
attribute: href attribute: href
filters:
- name: replace
args: ["details.php?id=", "download.php?id="]
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
@ -114,7 +108,7 @@
selector: td:nth-child(8) selector: td:nth-child(8)
filters: filters:
- name: regexp - name: regexp
args: ([\d,]+) args: (\d+)
files: files:
selector: td:nth-child(4) selector: td:nth-child(4)
size: size: