Bitspyder: add support for alternative style

This commit is contained in:
kaso17
2017-01-17 13:28:18 +01:00
parent 6972103891
commit 208761f28c

View File

@@ -68,6 +68,7 @@
filters: filters:
- name: andmatch - name: andmatch
fields: fields:
# there are two styles, we support both
title: title:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
category: category:
@@ -88,19 +89,19 @@
- name: replace - name: replace
args: ["&hit=1", "/dummy.torrent"] args: ["&hit=1", "/dummy.torrent"]
size: size:
selector: td:nth-child(6) selector: td.rowcol:nth-child(6):has(br), font:contains("Size:") + font
files: files:
selector: td:nth-child(3) selector: a[href*="&filelist=1"]
grabs: grabs:
selector: td:nth-child(7) selector: td.rowcol:nth-child(7):contains("times"), font:contains("Snatches:")
filters: filters:
- name: regexp - name: regexp
args: ([\d\,]+) args: ([\d\,]+)
seeders: seeders:
selector: td:nth-child(8) selector: td.rowcol:nth-last-child(3)
leechers: leechers:
selector: td:nth-child(9) selector: td.rowcol:nth-last-child(2)
date: date|optional|1:
selector: font[color="5F5F5F"] selector: font[color="5F5F5F"]
filters: filters:
- name: split - name: split
@@ -111,6 +112,16 @@
args: " +00:00" args: " +00:00"
- name: dateparse - name: dateparse
args: "2006-01-02 15:04:05 -07:00" args: "2006-01-02 15:04:05 -07:00"
date|optional|2:
selector: a[title^="Upploaded at"]
attribute: title
filters:
- name: replace
args: ["Upploaded at - ", ""]
- name: append
args: " +00:00"
- name: dateparse
args: "2006-01-02 15:04:05 -07:00"
downloadvolumefactor: downloadvolumefactor:
case: case:
"*": "1" "*": "1"