aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-05 16:07:36 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-09-05 16:07:36 -0400
commitd4324b7e893725c1fc42eb482d54184420b9a5d9 (patch)
treeaa81c34717eb7bd3c645da702e47ebd3aa74c79b /MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs
parentcc7b150b90e238286121d58e618d4f8f7c2b6c49 (diff)
add chapter image error handling
Diffstat (limited to 'MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs')
-rw-r--r--MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs b/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs
new file mode 100644
index 000000000..d2d28e504
--- /dev/null
+++ b/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs
@@ -0,0 +1,36 @@
+using MediaBrowser.Controller.Entities;
+
+namespace MediaBrowser.Controller.Collections
+{
+ public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
+ {
+ public ManualCollectionsFolder()
+ {
+ Name = "Collections";
+ DisplayMediaType = "CollectionFolder";
+ }
+
+ public override bool IsHidden
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ public bool IsHiddenFromUser(User user)
+ {
+ return !ConfigurationManager.Configuration.DisplayCollectionsView;
+ }
+
+ public override string CollectionType
+ {
+ get { return Model.Entities.CollectionType.BoxSets; }
+ }
+
+ public override string GetClientTypeName()
+ {
+ return typeof(CollectionFolder).Name;
+ }
+ }
+} \ No newline at end of file