mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-07 13:51:10 +03:00
I can't see a way within most implementations to get the client to
specify the size of artwork, so I'll const it for now
This commit is contained in:
parent
9892be3e36
commit
713895696f
@ -39,6 +39,7 @@ const (
|
|||||||
resourceStreamPath = "s"
|
resourceStreamPath = "s"
|
||||||
resourceArtPath = "a"
|
resourceArtPath = "a"
|
||||||
serviceControlURL = "/ctl"
|
serviceControlURL = "/ctl"
|
||||||
|
DLNAArtSize = 250
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed static/*
|
//go:embed static/*
|
||||||
@ -346,8 +347,7 @@ func (s *SSDPServer) resourceHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
log.Error("Failure to parse ArtworkId", "inputString", components[1], err)
|
log.Error("Failure to parse ArtworkId", "inputString", components[1], err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
//TODO size (250)
|
imgReader, lastUpdate, err := s.art.Get(r.Context(), artId, DLNAArtSize, true)
|
||||||
imgReader, lastUpdate, err := s.art.Get(r.Context(), artId, 250, true)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error("Failure to retrieve artwork", "artid", artId, err)
|
log.Error("Failure to retrieve artwork", "artid", artId, err)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user