Change avatar placeholder to new logo

This commit is contained in:
Deluan 2020-10-23 21:37:53 -04:00
parent fc19199fbe
commit 04fd72e1fa
3 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,7 @@ const (
SkipScanFile = ".ndignore"
PlaceholderAlbumArt = "navidrome-600x600.png"
PlaceholderAvatar = "logo-192x192.png"
)
// Cache options

BIN
resources/logo-192x192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -22,7 +22,7 @@ func NewMediaRetrievalController(artwork core.Artwork) *MediaRetrievalController
}
func (c *MediaRetrievalController) GetAvatar(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
f, err := resources.AssetFile().Open(consts.PlaceholderAlbumArt)
f, err := resources.AssetFile().Open(consts.PlaceholderAvatar)
if err != nil {
log.Error(r, "Image not found", err)
return nil, newError(responses.ErrorDataNotFound, "Avatar image not found")