matrix: posters are back

add verified to poster description
show only active
I'm getting strange results with incldead %-/
site is WIP
This commit is contained in:
Garfield69
2025-03-19 14:56:04 +13:00
parent ba93320b4e
commit 9715903582

View File

@@ -106,7 +106,7 @@ search:
$raw: "{{ range .Categories }}c{{.}}=1&{{end}}"
search: "{{ if .Query.IMDBID }}{{ .Query.IMDBID }}{{ else }}{{ .Keywords }}{{ end }}"
# 0 active only, 1 include dead, 2 only dead, 3 free, 4 double
incldead: "{{ if .Config.freeleech }}3{{ else }}1{{ end }}"
incldead: "{{ if .Config.freeleech }}3{{ else }}0{{ end }}"
sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}"
@@ -129,6 +129,12 @@ search:
text: "details.php?id={{ .Result._id }}"
download:
text: "download.php?id={{ .Result._id }}"
poster:
selector: a[onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: \\\'(.+?)\\
imdbid:
selector: a[href*="imdb.com/title/tt"]
attribute: href
@@ -147,13 +153,18 @@ search:
selector: td:nth-child(6)
leechers:
selector: td:nth-child(7)
_verified:
selector: span.torrent-ok, span.torrent-unchecked
case:
span.torrent-ok: Verified
span.torrent-unchecked: Unchecked
genre:
selector: td:nth-child(2) > div > i.small
filters:
- name: regexp
args: "\\((.+)\\)"
description:
text: "{{ .Result.genre }}"
text: "{{ .Result._verified }} - {{ .Result.genre }}"
downloadvolumefactor:
case:
span.text-red:contains("[x0]"): 0