engine tag luminance. #6822

This commit is contained in:
Garfield69 2020-02-15 18:25:37 +13:00
parent 3271efe478
commit dcd10211e2
4 changed files with 34 additions and 24 deletions

View File

@ -85,14 +85,16 @@
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
title: "{{ .Query.Keywords }}" title: "{{ .Keywords }}"
order_by: time order_by: time
order_way: desc order_way: desc
action: basic action: basic
searchsubmit: 1 searchsubmit: 1
rows: rows:
# exclude redbar torrents # exclude redbar torrents
selector: table#torrent_table > tbody > tr[class^="torrent row"] selector: table#torrent_table > tbody > tr[class^="torrent row"]
fields: fields:
download: download:
selector: a[href^="/torrents.php?action=download&id="] selector: a[href^="/torrents.php?action=download&id="]
@ -106,7 +108,7 @@
attribute: href attribute: href
filters: filters:
- name: regexp - name: regexp
args: "\\[(\\d+?)\\]" args: "(\\d+)]=1"
details: details:
selector: a[href^="/torrents.php?id="] selector: a[href^="/torrents.php?id="]
attribute: href attribute: href
@ -141,8 +143,8 @@
downloadvolumefactor: downloadvolumefactor:
case: case:
span.icon[title*="Freeleech"]: 0 span.icon[title*="Freeleech"]: 0
"img[alt=\"Freeleech\"]": "0" "img[alt=\"Freeleech\"]": 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": "1" # luminance

View File

@ -53,14 +53,16 @@
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}" $raw: "{{range .Categories}}filter_cat[{{.}}]=1&{{end}}"
title: "{{ .Query.Keywords }}" title: "{{ .Keywords }}"
order_by: time order_by: time
order_way: desc order_way: desc
action: basic action: basic
searchsubmit: 1 searchsubmit: 1
rows: rows:
# exclude redbar torrents # exclude redbar torrents
selector: table#torrent_table > tbody > tr[class^="torrent row"] selector: table#torrent_table > tbody > tr[class^="torrent row"]
fields: fields:
download: download:
selector: a[href^="torrents.php?action=download&id="] selector: a[href^="torrents.php?action=download&id="]
@ -74,7 +76,7 @@
attribute: href attribute: href
filters: filters:
- name: regexp - name: regexp
args: "\\[(\\d+?)\\]" args: "(\\d+)]=1"
details: details:
selector: a[href^="torrents.php?id="] selector: a[href^="torrents.php?id="]
attribute: href attribute: href
@ -107,8 +109,8 @@
selector: td:nth-child(9) selector: td:nth-child(9)
downloadvolumefactor: downloadvolumefactor:
case: case:
"img[alt=\"Freeleech\"]": "0" "img[alt=\"Freeleech\"]": 0
"*": "1" "*": 1
uploadvolumefactor: uploadvolumefactor:
case: text: 1
"*": "1" # luminance

View File

@ -39,7 +39,7 @@
modes: modes:
search: [q] search: [q]
tv-search: [q, season, ep] tv-search: [q]
movie-search: [q] movie-search: [q]
settings: settings:
@ -74,7 +74,7 @@
password: "{{ .Config.password }}" password: "{{ .Config.password }}"
cinfo: "1536|864|24|-780" cinfo: "1536|864|24|-780"
iplocked: 0 iplocked: 0
submit: "login" submit: login
selectorinputs: selectorinputs:
token: token:
selector: input[name="token"] selector: input[name="token"]
@ -82,13 +82,8 @@
error: error:
- selector: table#maincontent tr td div div#messagebarA - selector: table#maincontent tr td div div#messagebarA
ratio:
path: /
selector: td:has(a[href="/articles.php?topic=ratio"]) > td
search: search:
paths: paths:
#https://nostalgic.to/torrents.php?filter_cat%5B32%5D=1&filter_cat%5B27%5D=1&order_by=time&order_way=desc&searchtext=&action=advanced&title=terminator&sizeall=&sizetype=gb&sizerange=0.01&filelist=&taglist=&autocomplete_toggle=1
- path: torrents.php - path: torrents.php
inputs: inputs:
$raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}" $raw: "{{ range .Categories }}filter_cat[{{.}}]=1&{{end}}"
@ -108,20 +103,31 @@
selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"]) selector: table#torrent_table tr:has(a[href^="torrents.php?action=download"])
fields: fields:
title:
selector: a[href^="/torrents.php?id="]
category: category:
selector: td.cats_col div a selector: a[href^="/torrents.php?filter_cat"]
attribute: href attribute: href
filters: filters:
- name: regexp - name: regexp
args: "(\\d+)]=1" args: "(\\d+)]=1"
title:
selector: a[href^="/torrents.php?id="]
details: details:
selector: a[href^="/torrents.php?id="] selector: a[href^="/torrents.php?id="]
attribute: href attribute: href
download: download:
selector: a[href^="torrents.php?action=download"] selector: a[href^="torrents.php?action=download"]
attribute: href attribute: href
description:
selector: div.tags
banner:
selector: td:nth-child(2) > script
filters:
- name: regexp
args: "src=\\\\\"(.*?)\\\\\">"
- name: re_replace
args: ["\\\\(.)", "$1"]
- name: replace
args: ["/static/common/noartwork/noimage.png", ""]
files: files:
selector: td:nth-last-child(8) selector: td:nth-last-child(8)
date: date:
@ -142,4 +148,4 @@
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a # luminance

View File

@ -161,4 +161,4 @@
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
text: 1 text: 1
# engine n/a # luminance