feat: use Navidrome's icon in getAvatar

This commit is contained in:
Deluan
2020-03-18 22:46:47 -04:00
parent 5b40ec400e
commit 8b108905a3
3 changed files with 30 additions and 11 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func NewMediaRetrievalController(cover engine.Cover) *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 := static.AssetFile().Open("itunes.png") f, err := static.AssetFile().Open("navidrone-310x310.png")
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")
+23 -4
View File
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB