diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-06 08:09:30 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-06 08:09:30 +0300 |
| commit | ad6f2ae6f6aa14926ef63a7fe124093dcceb024b (patch) | |
| tree | 515309f431add4fe9d9b2bf2909bbc89fced12e5 /web/css | |
| parent | 885dd0912dd0e4f9df86b6676a6c467bdb367660 (diff) | |
fix(scanner, browse): fallback to original image when thumbnail generation fails for cover.jpg
When scanning image files (e.g. cover.jpg in audiobook folders),
thumbnailForImage can fail or produce a missing .thumbnails/cover.jpg.
This caused broken thumbnails in the grid.
- scanner.go buildThumbnailPath: after generating an image thumbnail,
verify the output file exists via fs.Stat. If it does not exist,
fall back to using the original image path as the thumbnail_path.
- browse.go GetThumbnail: if os.Stat(ThumbnailPath) fails and the
media type is image, fall back to serving the original AbsPath.
All tests pass.
Diffstat (limited to 'web/css')
0 files changed, 0 insertions, 0 deletions
