mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
Change resized image cache key
This commit is contained in:
parent
3252fab171
commit
e434ca9372
@ -42,13 +42,11 @@ func resizedFromOriginal(ctx context.Context, a *artwork, artID model.ArtworkID,
|
||||
}
|
||||
|
||||
func (a *resizedArtworkReader) Key() string {
|
||||
return fmt.Sprintf(
|
||||
"%s.%d.%t.%d",
|
||||
a.cacheKey,
|
||||
a.size,
|
||||
a.square,
|
||||
conf.Server.CoverJpegQuality,
|
||||
)
|
||||
baseKey := fmt.Sprintf("%s.%d", a.cacheKey, a.size)
|
||||
if a.square {
|
||||
return baseKey + ".square"
|
||||
}
|
||||
return fmt.Sprintf("%s.%d", baseKey, conf.Server.CoverJpegQuality)
|
||||
}
|
||||
|
||||
func (a *resizedArtworkReader) LastUpdated() time.Time {
|
||||
|
Loading…
x
Reference in New Issue
Block a user