Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

serve dlna: make BrowseMetadata more compliant - fixes #7883

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