UHDBits: handle optional columns

This commit is contained in:
kaso17
2017-02-28 14:00:11 +01:00
parent 6ec5e11218
commit 758b00b567

View File

@@ -55,6 +55,7 @@
rows: rows:
selector: table#torrent_table > tbody > tr.torrent selector: table#torrent_table > tbody > tr.torrent
fields: fields:
# note: there are optinal extra colums
download: download:
selector: a[title="Download"] selector: a[title="Download"]
attribute: href attribute: href
@@ -117,15 +118,15 @@
- name: regexp - name: regexp
args: (.*)#torrent\d+$ args: (.*)#torrent\d+$
size: size:
selector: td:nth-child(5) selector: td[class="number_column nobr"]
grabs: grabs:
selector: td:nth-child(6) selector: td[class="number_column nobr"] ~ td
files: files:
selector: td:nth-child(3) selector: td:nth-child(3)
seeders: seeders:
selector: td:nth-child(7) selector: td[class="number_column nobr"] ~ td ~ td
leechers: leechers:
selector: td:nth-child(8) selector: td[class="number_column nobr"] ~ td ~ td ~ td
date: date:
selector: td:nth-child(4) selector: td:nth-child(4)
filters: filters: