set display media type in constructor
This commit is contained in:
parent
8d3bb9338c
commit
2c0010850f
|
@ -19,5 +19,10 @@ namespace MediaBrowser.Controller.Entities
|
|||
return LocationType.Virtual;
|
||||
}
|
||||
}
|
||||
|
||||
protected BasePluginFolder()
|
||||
{
|
||||
DisplayMediaType = "CollectionFolder";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -571,11 +571,6 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
{
|
||||
var folder = child.GetFolder();
|
||||
|
||||
if (string.IsNullOrEmpty(folder.DisplayMediaType))
|
||||
{
|
||||
folder.DisplayMediaType = "CollectionFolder";
|
||||
}
|
||||
|
||||
if (folder.Id == Guid.Empty)
|
||||
{
|
||||
folder.Id = (folder.Path ?? folder.Name ?? folder.GetType().Name).GetMBId(folder.GetType());
|
||||
|
|
Loading…
Reference in New Issue
Block a user