2014-06-23 12:05:19 -04:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2014-05-08 16:26:20 -04:00
|
|
|
|
|
2016-09-05 16:07:36 -04:00
|
|
|
|
namespace MediaBrowser.Controller.Collections
|
2014-05-08 16:26:20 -04:00
|
|
|
|
{
|
2015-11-11 09:56:31 -05:00
|
|
|
|
public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
|
2014-05-08 16:26:20 -04:00
|
|
|
|
{
|
|
|
|
|
|
public ManualCollectionsFolder()
|
|
|
|
|
|
{
|
|
|
|
|
|
Name = "Collections";
|
2014-08-02 22:16:37 -04:00
|
|
|
|
DisplayMediaType = "CollectionFolder";
|
2014-05-08 16:26:20 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override bool IsHidden
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
2014-07-01 00:26:50 -04:00
|
|
|
|
return true;
|
2014-05-08 16:26:20 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-06-22 01:52:31 -04:00
|
|
|
|
|
2015-11-11 09:56:31 -05:00
|
|
|
|
public bool IsHiddenFromUser(User user)
|
2014-07-01 00:06:28 -04:00
|
|
|
|
{
|
2016-06-13 15:02:48 -04:00
|
|
|
|
return !ConfigurationManager.Configuration.DisplayCollectionsView;
|
2014-07-01 00:06:28 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2014-06-22 01:52:31 -04:00
|
|
|
|
public override string CollectionType
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return Model.Entities.CollectionType.BoxSets; }
|
|
|
|
|
|
}
|
2014-06-23 12:05:19 -04:00
|
|
|
|
|
|
|
|
|
|
public override string GetClientTypeName()
|
|
|
|
|
|
{
|
2015-11-11 09:56:31 -05:00
|
|
|
|
return typeof(CollectionFolder).Name;
|
2014-06-23 12:05:19 -04:00
|
|
|
|
}
|
2014-05-08 16:26:20 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|