mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 23:13:06 +03:00
update library setup
This commit is contained in:
@@ -13,6 +13,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
public string ViewType { get; set; }
|
||||
public Guid ParentId { get; set; }
|
||||
public Guid DisplayParentId { get; set; }
|
||||
|
||||
public Guid? UserId { get; set; }
|
||||
|
||||
@@ -28,7 +29,11 @@ namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
var parent = this as Folder;
|
||||
|
||||
if (ParentId != Guid.Empty)
|
||||
if (DisplayParentId != Guid.Empty)
|
||||
{
|
||||
parent = LibraryManager.GetItemById(DisplayParentId) as Folder ?? parent;
|
||||
}
|
||||
else if (ParentId != Guid.Empty)
|
||||
{
|
||||
parent = LibraryManager.GetItemById(ParentId) as Folder ?? parent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user