diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-12-08 15:45:36 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2023-12-08 15:45:36 -0700 |
| commit | 033cfa59c499e5adbb949b708f06e56bf8932401 (patch) | |
| tree | 81e33ebe860d5852bb48b1abb7436c9c4c30053e /Emby.Server.Implementations/Library/LibraryManager.cs | |
| parent | 0d5bbfda321f64ad78b5b74e7bdfbbbb8b64c7af (diff) | |
Convert CollectionType to use lowercase enum names
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LibraryManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index f40177fa7..a79ffd9cb 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1514,7 +1514,7 @@ namespace Emby.Server.Implementations.Library { if (item is UserView view) { - if (view.ViewType == CollectionType.LiveTv) + if (view.ViewType == CollectionType.livetv) { return new[] { view.Id }; } @@ -1543,7 +1543,7 @@ namespace Emby.Server.Implementations.Library } // Handle grouping - if (user is not null && view.ViewType != CollectionType.Unknown && UserView.IsEligibleForGrouping(view.ViewType) + if (user is not null && view.ViewType != CollectionType.unknown && UserView.IsEligibleForGrouping(view.ViewType) && user.GetPreference(PreferenceKind.GroupedFolders).Length > 0) { return GetUserRootFolder() |
