Update rockbox.yml (#3981)

date fix and selector change on rows
This commit is contained in:
xfouloux
2018-10-15 14:21:52 +11:00
committed by garfield69
parent 6451525eb1
commit a601a25652

View File

@@ -38,28 +38,40 @@
inputs: inputs:
search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}" search: "{{if .Query.Artist}}{{ .Query.Artist }}{{else}}{{ .Keywords }}{{end}}"
rows: rows:
selector: body:nth-child(2) tbody tr td:nth-child(2) table.lista tbody tr:nth-child(2) table.lista tbody tr selector: tr:has(a[href^="download.php?id="])
fields: fields:
title: title:
selector: td a[href^="details.php?id="] selector: td a[href^="details.php?id="]
details: details:
selector: td a[href^="details.php?id="] selector: td a[href^="details.php?id="]
attribute: href attribute: href
comments: # link to the comments of the torrent comments:
selector: td a[href^="details.php?id="] selector: td a[href^="details.php?id="]
attribute: href attribute: href
download: download:
selector: td a[href^="download.php?id="] selector: td a[href^="download.php?id="]
attribute: href attribute: href
# dates come in two flavours:
date: date:
selector: td:nth-child(6) # 13/10/2018
size: # size of the torrent (units are handled automatically) selector: td:nth-child(6):contains("/")
optional: true
filters:
- name: dateparse
#args: "02/01/2006"
date:
# 1 hour ago, 2 days ago, 3 weeks ago etc
selector: td:nth-child(6):not(:contains("/"))
optional: true
filters:
- name: timeago
size:
selector: td:nth-child(7) selector: td:nth-child(7)
seeders: seeders:
selector: td:nth-child(9) selector: td:nth-child(9)
leechers: leechers:
selector: td:nth-child(10) selector: td:nth-child(10)
grabs: # number of downloads grabs:
selector: td:nth-child(11) selector: td:nth-child(11)
category: category:
text: "Music" text: "Music"