gay-torrents.org: fix and improve definition

This commit is contained in:
kaso17
2018-07-30 14:23:59 +02:00
parent fc3d8d1aec
commit c3c25190a2

View File

@@ -108,9 +108,15 @@
details: details:
selector: a[href^="details.php?id="] selector: a[href^="details.php?id="]
attribute: href attribute: href
banner:
optional: true
selector: a.screenshot
attribute: rel
grabs: grabs:
selector: div:nth-child(3) > div:nth-child(1) > div:nth-child(2) > a selector: div.downloadTimes
filters: filters:
- name: replace
args: ["No downloads yet", "0"]
- name: regexp - name: regexp
args: ([\d,]+) args: ([\d,]+)
comments: comments:
@@ -120,20 +126,20 @@
selector: a[href^="download.php?id="] selector: a[href^="download.php?id="]
attribute: href attribute: href
size: size:
selector: div:nth-child(3) > div:nth-child(3) > div selector: div.size
seeders: seeders:
selector: div:nth-child(3) > div:nth-child(3) > div:nth-child(2) > div:nth-child(1) > a selector: div.downloadPeers div:nth-child(1) > a
leechers: leechers:
selector: div:nth-child(3) > div:nth-child(3) > div:nth-child(2) > div:nth-child(2) > a selector: div.downloadPeers > div:nth-child(2) > a
date: date:
selector: div:nth-child(4) > div:nth-child(3) > div selector: div.date
filters: filters:
- name: re_replace - name: re_replace
args: ["on (\\d{2}:\\d{2}) (\\d{2})-([a-zA-Z]{3})-(\\d{4})", "$2 $3 $4 $1"] args: ["on (\\d{2}:\\d{2}) (\\d{2})-([a-zA-Z]{3})-(\\d{4})", "$2 $3 $4 $1"]
- name: append - name: append
args: " +01:00" args: " +01:00"
- name: dateparse - name: dateparse
args: "02 Jan 06 15:14 -07:00" args: "02 Jan 2006 15:04 -07:00"
downloadvolumefactor: downloadvolumefactor:
case: case:
"div:nth-child(2) > div:nth-child(3) > a:contains(\"FREE!\")": 0 "div:nth-child(2) > div:nth-child(3) > a:contains(\"FREE!\")": 0