serve dlna: make BrowseMetadata more compliant - fixes #7883

This commit is contained in:
albertony 2024-06-01 18:39:42 +02:00
parent 3f3e4b055e
commit fea61cac9e

View File

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