Skip to content

🎧 Your Personal Streaming Service

Change avatar placeholder to new logo

Deluan04fd72e1fa99
diff --git a/consts/consts.go b/consts/consts.go
index 5eecc1a3f..9d56826bf 100644
--- a/consts/consts.go
+++ b/consts/consts.go
@@ -31,6 +31,7 @@ const (
SkipScanFile = ".ndignore"
PlaceholderAlbumArt = "navidrome-600x600.png"
+ PlaceholderAvatar = "logo-192x192.png"
)
// Cache options
diff --git a/resources/logo-192x192.png b/resources/logo-192x192.png
new file mode 100644
index 000000000..1c8bfef33
Binary files /dev/null and b/resources/logo-192x192.png differ
diff --git a/server/subsonic/media_retrieval.go b/server/subsonic/media_retrieval.go
index e5f875da6..ca7300cf9 100644
--- a/server/subsonic/media_retrieval.go
+++ b/server/subsonic/media_retrieval.go
@@ -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")