From f1a24b971a20a4f9c9ecfbdd62caf9c53f9c8c4d Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 29 Oct 2020 23:18:41 -0400 Subject: [PATCH] Use timestamp of artwork file instead of album's UpdatedAt in the cache key --- core/artwork.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/artwork.go b/core/artwork.go index 5de3e8fd6..8d84f87ba 100644 --- a/core/artwork.go +++ b/core/artwork.go @@ -61,6 +61,10 @@ func (a *artwork) Get(ctx context.Context, id string, size int, out io.Writer) e return err } + if stat, err := os.Stat(path); err == nil { + lastUpdate = stat.ModTime() + } + info := &imageInfo{ a: a, id: id,