set display media type in constructor

pull/702/head
Luke Pulverenti 12 years ago
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…
Cancel
Save