mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-05 21:01:08 +03:00
It seems not right for calling ParentID() to be messing with
o.Path?
This commit is contained in:
parent
b535847ba9
commit
c1fde0f4e4
@ -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