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:
Rob Emery 2025-04-19 10:40:55 +01:00
parent 9892be3e36
commit 713895696f

View File

@ -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