From c1fde0f4e4145143adcf2be0eb5bad598bde5e1f Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Sat, 19 Apr 2025 11:20:14 +0100 Subject: [PATCH] It seems not right for calling ParentID() to be messing with o.Path? --- dlna/contenddirectoryservice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlna/contenddirectoryservice.go b/dlna/contenddirectoryservice.go index a62c8ec5f..da61b45d1 100644 --- a/dlna/contenddirectoryservice.go +++ b/dlna/contenddirectoryservice.go @@ -501,6 +501,6 @@ func (o contentDirectoryObject) ParentID() string { if o.IsRoot() { return "-1" } - o.Path = path.Dir(o.Path) - return o.ID() + parentObject := contentDirectoryObject{Path: path.Dir(o.Path)} + return parentObject.ID() }