Fixing the parent path, the path to the resource would only work if

the filename was passed as the path, but we want to use the streaming
methods, so we'll have to come up with something else
This commit is contained in:
Rob Emery 2025-02-02 17:59:43 +00:00
parent 1dd36fd685
commit 4449ee2952

View File

@ -275,7 +275,7 @@ func (cds *contentDirectoryService) doMediaFiles(tracks model.MediaFiles, basePa
obj := upnpav.Object{
ID: child.Id,
Restricted: 1,
ParentID: child.ParentID(),
ParentID: basePath,
Title: title,
}
@ -297,7 +297,7 @@ func (cds *contentDirectoryService) doMediaFiles(tracks model.MediaFiles, basePa
URL: (&url.URL{
Scheme: "http",
Host: host,
Path: path.Join(resPath, child.Path),
Path: child.Path,
}).String(),
ProtocolInfo: fmt.Sprintf("http-get:*:%s:%s", mimeType, dlna.ContentFeatures{
SupportRange: false,