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