From 713895696fb2461585a9015d37d8db7d6835018d Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sat, 19 Apr 2025 10:40:55 +0100 Subject: [PATCH] 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 --- dlna/dlnaserver.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlna/dlnaserver.go b/dlna/dlnaserver.go index 73a270719..92a466fc3 100644 --- a/dlna/dlnaserver.go +++ b/dlna/dlnaserver.go @@ -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