aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Collections
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-09-09 15:42:40 -0400
committerGitHub <noreply@github.com>2016-09-09 15:42:40 -0400
commit080a6511dc44edde960e6aefcab7e6cc068a3414 (patch)
tree499c61fec48dcc080888d9cfc021baf734886fe7 /MediaBrowser.Controller/Collections
parent51051c27cd4a30010eee98f4f99ebb895e166a91 (diff)
parent5ad606a2232c6911e2cd8cf5d03da635c7c0c75d (diff)
Merge pull request #2151 from MediaBrowser/beta
Beta
Diffstat (limited to 'MediaBrowser.Controller/Collections')
-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 0000000000..d2d28e5047
--- /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