From fea61cac9ed70ae33f7274ae8e062ca4c2dc523c Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 1 Jun 2024 18:39:42 +0200 Subject: [PATCH] serve dlna: make BrowseMetadata more compliant - fixes #7883 --- cmd/serve/dlna/cds.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/serve/dlna/cds.go b/cmd/serve/dlna/cds.go index 59572f926..be8fdc9c9 100644 --- a/cmd/serve/dlna/cds.go +++ b/cmd/serve/dlna/cds.go @@ -289,7 +289,10 @@ func (cds *contentDirectoryService) Handle(action string, argsXML []byte, r *htt return nil, err } return map[string]string{ - "Result": didlLite(string(result)), + "TotalMatches": "1", + "NumberReturned": "1", + "Result": didlLite(string(result)), + "UpdateID": cds.updateIDString(), }, nil default: return nil, upnp.Errorf(upnp.ArgumentValueInvalidErrorCode, "unhandled browse flag: %v", browse.BrowseFlag)