From 60b2bc41498ef19b50d5f4723ee2a8d1154e7852 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() }