set display media type in constructor

This commit is contained in:
Luke Pulverenti 2013-06-13 16:15:50 -04:00
parent 8d3bb9338c
commit 2c0010850f
2 changed files with 5 additions and 5 deletions

View File

@ -19,5 +19,10 @@ namespace MediaBrowser.Controller.Entities
return LocationType.Virtual;
}
}
protected BasePluginFolder()
{
DisplayMediaType = "CollectionFolder";
}
}
}

View File

@ -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());