pwtorrents: added seedbox download link. resolves #5629

This commit is contained in:
Garfield69
2019-07-10 08:41:30 +12:00
parent 6f87aaba86
commit 2916e8f1d4

View File

@@ -32,6 +32,18 @@
modes: modes:
search: [q] search: [q]
settings:
- name: username
type: text
label: Username
- name: password
type: password
label: Password
- name: seedbox
type: checkbox
label: "Use SeedBox Download Link"
default: false
login: login:
path: login.php path: login.php
method: form method: form
@@ -72,30 +84,33 @@
args: cat args: cat
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
download:
selector: a[href^="download.php"]
attribute: href
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
grabs: download1:
selector: td:nth-child(6) a selector: a[href^="download.php?id="]
filters: attribute: href
- name: replace download2:
args: ["times", ""] selector: a[href^="seeddownload.php?id="]
- name: replace attribute: href
args: ["time", ""] download:
size: text: "{{if .Config.seedbox}}{{ .Result.download2 }}{{else}}{{ .Result.download1 }}{{end}}"
selector: td:nth-child(5)
seeders:
selector: td:nth-child(8)
leechers:
selector: td:nth-child(9)
date: date:
selector: td:nth-child(4) selector: td:nth-child(4)
filters: filters:
- name: dateparse - name: dateparse
args: "2006-01-0215:04:05" args: "2006-01-0215:04:05"
size:
selector: td:nth-child(5)
grabs:
selector: td:nth-child(6)
filters:
- name: regexp
args: (\d+)
seeders:
selector: td:nth-child(9)
leechers:
selector: td:nth-child(10)
downloadvolumefactor: downloadvolumefactor:
case: case:
"*": "1" "*": "1"