diff --git a/MediaBrowser.Controller/Entities/CollectionFolder.cs b/MediaBrowser.Controller/Entities/CollectionFolder.cs index 68ba22356..289cb7a2e 100644 --- a/MediaBrowser.Controller/Entities/CollectionFolder.cs +++ b/MediaBrowser.Controller/Entities/CollectionFolder.cs @@ -44,16 +44,16 @@ namespace MediaBrowser.Controller.Entities public string CollectionType { get; set; } - private readonly Dictionary _libraryOptions = new Dictionary(); + private static readonly Dictionary LibraryOptions = new Dictionary(); public LibraryOptions GetLibraryOptions() { - lock (_libraryOptions) + lock (LibraryOptions) { LibraryOptions options; - if (!_libraryOptions.TryGetValue(Path, out options)) + if (!LibraryOptions.TryGetValue(Path, out options)) { options = LoadLibraryOptions(); - _libraryOptions[Path] = options; + LibraryOptions[Path] = options; } return options; diff --git a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj index 2917ec2ce..f1b234b90 100644 --- a/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj +++ b/MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj @@ -143,6 +143,12 @@ PreserveNewest + + PreserveNewest + + + PreserveNewest + PreserveNewest