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}}" $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, 3 free, 4 double # 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 }}" sort: "{{ .Config.sort }}"
type: "{{ .Config.type }}" type: "{{ .Config.type }}"
@@ -129,6 +129,12 @@ search:
text: "details.php?id={{ .Result._id }}" text: "details.php?id={{ .Result._id }}"
download: download:
text: "download.php?id={{ .Result._id }}" text: "download.php?id={{ .Result._id }}"
poster:
selector: a[onmouseover]
attribute: onmouseover
filters:
- name: regexp
args: \\\'(.+?)\\
imdbid: imdbid:
selector: a[href*="imdb.com/title/tt"] selector: a[href*="imdb.com/title/tt"]
attribute: href attribute: href
@@ -147,13 +153,18 @@ search:
selector: td:nth-child(6) selector: td:nth-child(6)
leechers: leechers:
selector: td:nth-child(7) selector: td:nth-child(7)
_verified:
selector: span.torrent-ok, span.torrent-unchecked
case:
span.torrent-ok: Verified
span.torrent-unchecked: Unchecked
genre: genre:
selector: td:nth-child(2) > div > i.small selector: td:nth-child(2) > div > i.small
filters: filters:
- name: regexp - name: regexp
args: "\\((.+)\\)" args: "\\((.+)\\)"
description: description:
text: "{{ .Result.genre }}" text: "{{ .Result._verified }} - {{ .Result.genre }}"
downloadvolumefactor: downloadvolumefactor:
case: case:
span.text-red:contains("[x0]"): 0 span.text-red:contains("[x0]"): 0