Change avatar placeholder to new logo
This commit is contained in:
@@ -31,6 +31,7 @@ const (
|
|||||||
SkipScanFile = ".ndignore"
|
SkipScanFile = ".ndignore"
|
||||||
|
|
||||||
PlaceholderAlbumArt = "navidrome-600x600.png"
|
PlaceholderAlbumArt = "navidrome-600x600.png"
|
||||||
|
PlaceholderAvatar = "logo-192x192.png"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Cache options
|
// Cache options
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -22,7 +22,7 @@ func NewMediaRetrievalController(artwork core.Artwork) *MediaRetrievalController
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *MediaRetrievalController) GetAvatar(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
|
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 {
|
if err != nil {
|
||||||
log.Error(r, "Image not found", err)
|
log.Error(r, "Image not found", err)
|
||||||
return nil, newError(responses.ErrorDataNotFound, "Avatar image not found")
|
return nil, newError(responses.ErrorDataNotFound, "Avatar image not found")
|
||||||
|
|||||||
Reference in New Issue
Block a user