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
1 changed files with 12 additions and 6 deletions

View File

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