matrix. new selectors. resolves #15888

now has search freeleech
now sort keys are text
new logout test
poster is gone
files is gone
titles are abbreviated ;-(
new DLVF and ULVF flags
users will need to edit the config to pick up the new config options (which they are likely to do since the password needs resetting anyways)
This commit is contained in:
Garfield69
2025-03-16 09:49:00 +13:00
parent 921bcf3328
commit 49599dfa37

View File

@@ -59,17 +59,17 @@ settings:
label: Password label: Password
- name: freeleech - name: freeleech
type: checkbox type: checkbox
label: Filter freeleech only label: Search freeleech only
default: false default: false
- name: sort - name: sort
type: select type: select
label: Sort requested from site label: Sort requested from site
default: 0 default: ctime
options: options:
0: created ctime: created
1: title name: title
4: size size: size
6: seeders seeders: seeders
- name: type - name: type
type: select type: select
label: Order requested from site label: Order requested from site
@@ -97,7 +97,7 @@ login:
- selector: td.embedded:contains("Hiba") - selector: td.embedded:contains("Hiba")
test: test:
path: / path: /
selector: a[href$="logout.php"] selector: a[href*="logout.php?logout="]
search: search:
paths: paths:
@@ -105,69 +105,51 @@ search:
inputs: inputs:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}" $raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}" search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active only, 1 include dead, 2 only dead # 0 active only, 1 include dead, 2 only dead, 3 free, 4 double
incldead: 1 incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
sort: "{{ .Config.sort }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
rows: rows:
selector: "table.mainouter > tbody > tr > td > table tr:has(a[href^=\"download.php?id=\"]){{ if .Config.freeleech }}:has(img[src$=\"/pic/ingyentorrent.gif\"]){{ else }}{{ end }}" selector: table.table-center > tbody > tr:has(a[href*="details.php?id="])
fields: fields:
category: categorydesc:
selector: a[href^="browse.php?cat="] selector: img[src^="/pic/categories"]
attribute: href attribute: title
filters:
- name: querystring
args: cat
title: title:
# titles can be abbreviated so using the name from DL selector: td:nth-child(2) > div > a
selector: a[href^="download.php?id="]
attribute: href
filters:
- name: querystring
args: name
- name: replace
args: [".torrent", ""]
details: details:
selector: a[href^="details.php?id="] selector: a[href*="details.php?id="]
attribute: href attribute: href
filters: filters:
- name: re_replace - name: re_replace
args: ["&hit=1.+", ""] args: ["&hit=1.+", ""]
download: download:
selector: a[href^="download.php?id="] text: "{{ .Result.details }}"
attribute: href filters:
poster: - name: replace
selector: a.torrent-link args: ["details.php", "download.php"]
attribute: data-cover
imdbid: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
files:
selector: td:nth-child(5) a
date: date:
selector: td:contains("Feltöltve:") selector: td:nth-child(3)
filters: filters:
- name: regexp
args: "Feltöltve: (.+?)(\\(|$)"
- name: append - name: append
args: " +01:00" # CET args: " +01:00" # CET
- name: dateparse - name: dateparse
args: "yyyy-MM-dd HH:mm:ss zzz" args: "yyyy-MM-ddHH:mm:ss zzz"
grabs:
selector: td:nth-child(7) b
size: size:
selector: td:nth-child(7) selector: td:nth-child(4)
filters: grabs:
- name: regexp selector: td:nth-child(5)
args: "(.+?B)"
seeders: seeders:
selector: td:nth-child(8) selector: td:nth-child(6)
leechers: leechers:
selector: td:nth-child(9) selector: td:nth-child(7)
genre: genre:
selector: td:nth-child(2) > div > i > i selector: td:nth-child(2) > div > i.small
filters: filters:
- name: regexp - name: regexp
args: "\\((.+)\\)" args: "\\((.+)\\)"
@@ -175,11 +157,11 @@ search:
text: "{{ .Result.genre }}" text: "{{ .Result.genre }}"
downloadvolumefactor: downloadvolumefactor:
case: case:
img[src$="/pic/ingyentorrent.gif"]: 0 span.text-red:contains("[x0]"): 0
"*": 1 "*": 1
uploadvolumefactor: uploadvolumefactor:
case: case:
img[src$="/pic/x2.gif"]: 2 span.text-blue:contains("[x2]"): 2
"*": 1 "*": 1
minimumratio: minimumratio:
text: 1.0 text: 1.0