From 7a9b848f38e06090cd0f32b4b83f2e668cc9e4fc Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 1 Jul 2020 17:01:46 -0400 Subject: [PATCH] Add quality to image cache key --- engine/cover.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/cover.go b/engine/cover.go index 53f010d6..c42216cc 100644 --- a/engine/cover.go +++ b/engine/cover.go @@ -119,7 +119,7 @@ func (c *cover) getCoverPath(ctx context.Context, id string) (path string, lastU } func imageCacheKey(path string, size int, lastUpdate time.Time) string { - return fmt.Sprintf("%s.%d.%s", path, size, lastUpdate.Format(time.RFC3339Nano)) + return fmt.Sprintf("%s.%d.%s.%d", path, size, lastUpdate.Format(time.RFC3339Nano), conf.Server.CoverJpegQuality) } func (c *cover) getCover(ctx context.Context, path string, size int) (reader io.Reader, err error) {