Fix BTXpress (#3488)

Parse error fix and cleanup
This commit is contained in:
natalia2493
2018-07-29 00:14:13 -04:00
committed by flightlevel
parent 72045404d4
commit d5c7445919

View File

@@ -1,13 +1,13 @@
--- ---
site: btxpress site: btxpress
name: BTXpress name: BTXpress
description: "HD Tracker Movies/TV/Music" description: "HD Tracker Movies/TV"
language: en-us language: en-us
type: private type: private
encoding: UTF-8 encoding: UTF-8
links: links:
- https://btxpress.org/ - https://btxpress.org/
caps: caps:
categorymappings: categorymappings:
- {id: 1, cat: Movies, desc: "Movies"} - {id: 1, cat: Movies, desc: "Movies"}
@@ -43,15 +43,8 @@
sorting: created_at sorting: created_at
direction: desc direction: desc
qty: 100 qty: 100
preprocessingfilters:
- name: jsonjoinarray
args: ["$.result", ""]
- name: prepend
args: "<table>"
- name: append
args: "</table>"
rows: rows:
selector: tr selector: table > tbody > tr
fields: fields:
category: category:
selector: a[href*="/categories/"] selector: a[href*="/categories/"]
@@ -62,33 +55,24 @@
title: title:
selector: a.view-torrent selector: a.view-torrent
download: download:
selector: a[href*="/download_check/"] selector: a[href*="/download/"]
attribute: href attribute: href
filters:
- name: replace
args: ["/download_check/", "/download/"]
details: details:
selector: a.view-torrent selector: a.view-torrent
attribute: href attribute: href
size: size:
selector: td:nth-child(5) selector: td:nth-child(4)
seeders: seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
grabs:
selector: td:nth-child(6) selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
grabs:
selector: td:nth-child(5)
filters: filters:
- name: regexp - name: regexp
args: ([\d\.]+) args: ([\d\.]+)
date: date:
selector: time selector: time
attribute: datetime
filters:
- name: append
args: " +00:00"
- name: dateparse
args: "2006-01-02 15:04:05 -07:00"
downloadvolumefactor: downloadvolumefactor:
case: case:
"i[data-original-title=\"100% Free\"]": "0" "i[data-original-title=\"100% Free\"]": "0"