From 4449ee295254ca44ffea040dd50d5c02fb0360d5 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sun, 2 Feb 2025 17:59:43 +0000 Subject: [PATCH] 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 --- dlna/contenddirectoryservice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlna/contenddirectoryservice.go b/dlna/contenddirectoryservice.go index a56399680..7633f1834 100644 --- a/dlna/contenddirectoryservice.go +++ b/dlna/contenddirectoryservice.go @@ -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,