From ccce1c0f6dbff1497fb76b830f92654e1a386458 Mon Sep 17 00:00:00 2001 From: Deluan Date: Tue, 19 Nov 2024 13:03:04 -0500 Subject: [PATCH] fix: pre-cache square images, or else they are not useful for the Album Grid Signed-off-by: Deluan --- core/artwork/cache_warmer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }