h-p2p: new poster selector

This commit is contained in:
Garfield69
2024-05-26 13:29:06 +12:00
parent 2d0b607f48
commit 5b94d45f28

View File

@@ -98,6 +98,8 @@ search:
attribute: attributes attribute: attributes
fields: fields:
_id:
selector: ..id
category: category:
selector: category_id selector: category_id
title_optional: title_optional:
@@ -116,10 +118,7 @@ search:
infohash: infohash:
selector: info_hash selector: info_hash
poster: poster:
selector: meta.poster text: "{{ .Config.sitelink }}files/img/torrent-cover_{{ .Result._id }}.jpg"
filters:
- name: replace
args: ["https://via.placeholder.com/90x135", ""]
genre: genre:
selector: meta.genres selector: meta.genres
filters: filters: