The Free Software Media System - Server Backend & API
fixed an issue getting collection type
Luke Pulverentie9722763b429
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.csindex 230cee47f2..26cada6ccb 100644--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs+++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs@@ -1456,9 +1456,10 @@ namespace MediaBrowser.Server.Implementations.Library}).Select(i => i.CollectionType).Where(i => !string.IsNullOrEmpty(i))- .Distinct();+ .Distinct()+ .ToList();- return collectionTypes.SingleOrDefault();+ return collectionTypes.Count == 1 ? collectionTypes[0] : null;}}}