mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Parse date, seeder, leecher, & grab values. (#1388)
* Fix size field to handle "Unknown" as a value.
This commit is contained in:
@@ -62,21 +62,22 @@
|
|||||||
download:
|
download:
|
||||||
selector: a[title="Magnet link"]
|
selector: a[title="Magnet link"]
|
||||||
attribute: href
|
attribute: href
|
||||||
|
seeders:
|
||||||
|
selector: td:nth-child(3) b
|
||||||
|
optional: true
|
||||||
|
leechers:
|
||||||
|
selector: td:nth-child(4) b
|
||||||
|
optional: true
|
||||||
|
grabs:
|
||||||
|
selector: td:nth-child(5)
|
||||||
|
optional: true
|
||||||
|
date:
|
||||||
|
selector: td.date
|
||||||
|
filters:
|
||||||
|
- name: dateparse
|
||||||
|
args: "2006-01-02T15:04:05Z"
|
||||||
size:
|
size:
|
||||||
selector: td.filesize
|
selector: td.filesize
|
||||||
seeders:
|
filters:
|
||||||
text: 0
|
- name: replace
|
||||||
# seeders:
|
args: ["Unknown", "0"]
|
||||||
# selector: td.tlistsn
|
|
||||||
# optional: true
|
|
||||||
# leechers:
|
|
||||||
# text: 0
|
|
||||||
# leechers:
|
|
||||||
# selector: td.tlistln
|
|
||||||
# optional: true
|
|
||||||
# grabs:
|
|
||||||
# selector: td.tlistdn
|
|
||||||
downloadvolumefactor:
|
|
||||||
text: "0"
|
|
||||||
uploadvolumefactor:
|
|
||||||
text: "1"
|
|
||||||
|
Reference in New Issue
Block a user