mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 06:40:57 +00:00
Parse date, seeder, leecher, & grab values. (#1388)
* Fix size field to handle "Unknown" as a value.
This commit is contained in:
parent
562cfd57a6
commit
d7b5ab8595
1 changed files with 17 additions and 16 deletions
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in a new issue