diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-08 15:10:53 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-05-08 15:10:53 -0400 |
| commit | 3fdf7516c0fbd5c43ac41184e5df06101db1b632 (patch) | |
| tree | 46bba0e283a9f3173c70406434443e4c54035228 /MediaBrowser.Controller/Entities/User.cs | |
| parent | e6c465d7a9252bc5dea1a30c0b87a27b6d07f516 (diff) | |
update translations
Diffstat (limited to 'MediaBrowser.Controller/Entities/User.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/User.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.cs index 01a7486b31..5b70ee5f4e 100644 --- a/MediaBrowser.Controller/Entities/User.cs +++ b/MediaBrowser.Controller/Entities/User.cs @@ -283,5 +283,17 @@ namespace MediaBrowser.Controller.Entities return hour >= schedule.StartHour && hour <= schedule.EndHour; } + + public bool IsFolderGrouped(Guid id) + { + var config = Configuration; + + if (config.ExcludeFoldersFromGrouping != null) + { + return !config.ExcludeFoldersFromGrouping.Select(i => new Guid(i)).Contains(id); + } + + return config.GroupedFolders.Select(i => new Guid(i)).Contains(id); + } } } |
