mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-05 21:01:08 +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"
|
||||
resourceArtPath = "a"
|
||||
serviceControlURL = "/ctl"
|
||||
DLNAArtSize = 250
|
||||
)
|
||||
|
||||
//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)
|
||||
return
|
||||
}
|
||||
//TODO size (250)
|
||||
imgReader, lastUpdate, err := s.art.Get(r.Context(), artId, 250, true)
|
||||
imgReader, lastUpdate, err := s.art.Get(r.Context(), artId, DLNAArtSize, true)
|
||||
if err != nil {
|
||||
log.Error("Failure to retrieve artwork", "artid", artId, err)
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user