diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-05 16:07:36 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-09-05 16:07:36 -0400 |
| commit | d4324b7e893725c1fc42eb482d54184420b9a5d9 (patch) | |
| tree | aa81c34717eb7bd3c645da702e47ebd3aa74c79b /MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs | |
| parent | cc7b150b90e238286121d58e618d4f8f7c2b6c49 (diff) | |
add chapter image error handling
Diffstat (limited to 'MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs')
| -rw-r--r-- | MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs | 36 |
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 |
