mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Change avatar placeholder to new logo
This commit is contained in:
parent
cf35356982
commit
289cabf945
@ -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
|
||||||
|
|||||||
BIN
resources/logo-192x192.png
Normal file
BIN
resources/logo-192x192.png
Normal file
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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user