mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 04:57:37 +03:00
Fix test
This commit is contained in:
parent
49f59fe9f4
commit
1a0563db2d
1 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@ import (
|
|||
"image/jpeg"
|
||||
_ "image/png"
|
||||
"io"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
|
@ -62,7 +63,8 @@ func (c *cover) Get(ctx context.Context, id string, size int, out io.Writer) err
|
|||
if err != model.ErrNotFound {
|
||||
reader, err = readFromTag(path)
|
||||
} else {
|
||||
f, err := static.AssetFile().Open("default_cover.jpg")
|
||||
var f http.File
|
||||
f, err = static.AssetFile().Open("default_cover.jpg")
|
||||
if err == nil {
|
||||
defer f.Close()
|
||||
reader = f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue