Fix image stuttering (#3035)

* Fix image stuttering.

* Fix docker publishing for PRs

* Write tests for new square parameter.

* Simplify code for createImage.

---------

Co-authored-by: Deluan Quintão <deluan@navidrome.org>
This commit is contained in:
Caio Cotts
2024-05-24 20:19:26 -04:00
committed by GitHub
parent 61903facdf
commit 0488fb92cb
11 changed files with 123 additions and 46 deletions
+1 -1
View File
@@ -257,7 +257,7 @@ type fakeArtwork struct {
recvSize int
}
func (c *fakeArtwork) GetOrPlaceholder(_ context.Context, id string, size int) (io.ReadCloser, time.Time, error) {
func (c *fakeArtwork) GetOrPlaceholder(_ context.Context, id string, size int, square bool) (io.ReadCloser, time.Time, error) {
if c.err != nil {
return nil, time.Time{}, c.err
}