nethd: changes for new layout

This commit is contained in:
Garfield69
2019-05-12 11:05:27 +12:00
parent 8e9290c501
commit 47580ec726

View File

@@ -39,9 +39,8 @@
search: search:
paths: paths:
- path: torrents.php - path: torrents.php
method: post
inputs: inputs:
$raw: "{{range .Categories}}c{{.}}=1&{{end}}" $raw: "{{range .Categories}}cat={{.}}&{{end}}"
search: "{{if .Query.IMDBID}}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}" search: "{{if .Query.IMDBID}}{{ .Query.IMDBID }}{{else}}{{ .Keywords }}{{end}}"
search_area: "{{ if .Query.IMDBID }}4{{else}}0{{end}}" search_area: "{{ if .Query.IMDBID }}4{{else}}0{{end}}"
search_mode: 0 search_mode: 0
@@ -54,7 +53,7 @@
- name: andmatch - name: andmatch
fields: fields:
title: title:
selector: td.name > div > a.poster-preview[title] selector: td.name > div > a[href*="-torrent-"][title]
attribute: title attribute: title
category: category:
selector: td.category > a selector: td.category > a
@@ -63,35 +62,39 @@
- name: querystring - name: querystring
args: cat args: cat
details: details:
selector: td.name > div > a.poster-preview[title] selector: td.name > div > a[href*="-torrent-"][title]
attribute: href attribute: href
banner:
selector: td.name > a.poster-preview img
attribute: src
comments: comments:
selector: a[href*="#comments"] selector: a[href*="#comments"]
attribute: href attribute: href
download: download:
selector: a.bookmark[onclick] selector: td.name > div > a[href*="-torrent-"][title]
attribute: onclick attribute: href
filters: filters:
- name: replace - name: regexp
args: [",false)", ""] args: "-torrent-(\\d+).html"
- name: replace - name: prepend
args: ["return bookmark(", "download.php?id="] args: "download.php?id="
size:
selector: td:nth-child(5)
seeders:
selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
grabs:
selector: td:nth-child(8)
date: date:
selector: td:nth-child(4) selector: td:nth-child(5)
filters: filters:
- name: timeago - name: timeago
size:
selector: td:nth-child(6)
seeders:
selector: td:nth-child(7)
leechers:
selector: td:nth-child(8)
grabs:
selector: td:nth-child(9)
downloadvolumefactor: downloadvolumefactor:
case: case:
"span.label:contains(\"Free\")": "0" "span.label:contains(\"Free\")": "0"
"span.label:contains(\"50%\")": "0.5" "span.label:contains(\"50%\")": "0.5"
"span.label:contains(\"30%\")": "0.7"
"*": "1" "*": "1"
uploadvolumefactor: uploadvolumefactor:
case: case: