Use timestamp of artwork file instead of album's UpdatedAt in the cache key

This commit is contained in:
Deluan 2020-10-29 23:18:41 -04:00 committed by Joe Stump
parent b953cea009
commit 38f383ba17
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -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,