plugin File Sharing Management: generate video thumbnails:

Video thumbnails are now generated too (recursively, along with images) on the `thumb`
command. The poster frame is extracted at 25% of the duration (instead of a fixed 10s
seek).

Thumbnails are now kept in cache indefinitely.
This commit is contained in:
Goffi 2026-10-20 13:15:26 +02:00
commit 8e4e96dcbb

View file

@ -512,8 +512,7 @@ class FileSharing:
thumb_size, thumb_id = await self._t.generate_thumbnail(
image_path,
max_thumb_size,
#  we keep thumbnails for 6 months
60 * 60 * 24 * 31 * 6,
C.MAX_AGE_PERSISTENT,
)
except Exception as e:
log.warning(_("Can't create thumbnail: {reason}").format(reason=e))