mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
It seems not right for calling ParentID() to be messing with
o.Path?
This commit is contained in:
parent
15c4943373
commit
60b2bc4149
@ -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()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user