mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-07 13:51:10 +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() {
|
if o.IsRoot() {
|
||||||
return "-1"
|
return "-1"
|
||||||
}
|
}
|
||||||
o.Path = path.Dir(o.Path)
|
parentObject := contentDirectoryObject{Path: path.Dir(o.Path)}
|
||||||
return o.ID()
|
return parentObject.ID()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user