Skip to content

🎧 Your Personal Streaming Service

fix: pre-cache square images, or else they are not useful for the Album Grid

Deluanccce1c0f6dbf
diff --git a/core/artwork/cache_warmer.go b/core/artwork/cache_warmer.go
index 23cfe86b9..8cab19d49 100644
--- a/core/artwork/cache_warmer.go
+++ b/core/artwork/cache_warmer.go
@@ -130,7 +130,7 @@ func (a *cacheWarmer) doCacheImage(ctx context.Context, id model.ArtworkID) erro
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
- r, _, err := a.artwork.Get(ctx, id, consts.UICoverArtSize, false)
+ r, _, err := a.artwork.Get(ctx, id, consts.UICoverArtSize, true)
if err != nil {
return fmt.Errorf("caching id='%s': %w", id, err)
}