The Free Software Media System - Server Backend & API
CollectionType can be null
Bond_00981f527f80832
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.csindex 799f8abc34..d9ffe64b3b 100644--- a/Emby.Server.Implementations/Library/LibraryManager.cs+++ b/Emby.Server.Implementations/Library/LibraryManager.cs@@ -1240,7 +1240,7 @@ namespace Emby.Server.Implementations.Libraryreturn info;}- private CollectionTypeOptions GetCollectionType(string path)+ private CollectionTypeOptions? GetCollectionType(string path){var files = _fileSystem.GetFilePaths(path, new[] { ".collection" }, true, false);foreach (var file in files)@@ -1253,7 +1253,7 @@ namespace Emby.Server.Implementations.Library}}- throw new FileNotFoundException("Coudn't find an appropriate collection type file.");+ return null;}/// <summary>diff --git a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs b/MediaBrowser.Model/Entities/VirtualFolderInfo.csindex 55879b2e02..ea3df37265 100644--- a/MediaBrowser.Model/Entities/VirtualFolderInfo.cs+++ b/MediaBrowser.Model/Entities/VirtualFolderInfo.cs@@ -35,7 +35,7 @@ namespace MediaBrowser.Model.Entities/// Gets or sets the type of the collection./// </summary>/// <value>The type of the collection.</value>- public CollectionTypeOptions CollectionType { get; set; }+ public CollectionTypeOptions? CollectionType { get; set; }public LibraryOptions LibraryOptions { get; set; }