Explorar o código

Directly use ParentId

Shadowghost hai 1 ano
pai
achega
99de0ca45f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      MediaBrowser.Controller/Providers/ItemInfo.cs

+ 1 - 1
MediaBrowser.Controller/Providers/ItemInfo.cs

@@ -11,7 +11,7 @@ namespace MediaBrowser.Controller.Providers
         public ItemInfo(BaseItem item)
         {
             Path = item.Path;
-            ParentId = item.GetParent().Id;
+            ParentId = item.ParentId;
             IndexNumber = item.IndexNumber;
             ContainingFolderPath = item.ContainingFolderPath;
             IsInMixedFolder = item.IsInMixedFolder;