Rename DevFastAccessCoverArt to EnableMediaFileCoverArt

This commit is contained in:
Deluan 2022-12-27 14:30:00 -05:00 committed by Deluan Quintão
parent 722a00cacf
commit 332900774d
6 changed files with 14 additions and 17 deletions

View file

@ -6,6 +6,7 @@ import (
"errors"
"io"
"net/http/httptest"
"time"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/model"
@ -110,13 +111,13 @@ type fakeArtwork struct {
recvSize int
}
func (c *fakeArtwork) Get(_ context.Context, id string, size int) (io.ReadCloser, error) {
func (c *fakeArtwork) Get(_ context.Context, id string, size int) (io.ReadCloser, time.Time, error) {
if c.err != nil {
return nil, c.err
return nil, time.Time{}, c.err
}
c.recvId = id
c.recvSize = size
return io.NopCloser(bytes.NewReader([]byte(c.data))), nil
return io.NopCloser(bytes.NewReader([]byte(c.data))), time.Time{}, nil
}
var _ = Describe("isSynced", func() {