From aef79a796dd029849f3d99c4b59d3652bd83b4a9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 2 Dec 2016 15:10:35 -0500 Subject: update xml parsing --- Emby.Server.Implementations/Library/LibraryManager.cs | 5 +++++ .../UserViews/DynamicImageProvider.cs | 12 +----------- 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'Emby.Server.Implementations') diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs index 283d193dd6..8fb28fb591 100644 --- a/Emby.Server.Implementations/Library/LibraryManager.cs +++ b/Emby.Server.Implementations/Library/LibraryManager.cs @@ -1069,6 +1069,11 @@ namespace Emby.Server.Implementations.Library { _logger.Info("Validating media library"); + // Ensure these objects are lazy loaded. + // Without this there is a deadlock that will need to be investigated + var rootChildren = RootFolder.Children.ToList(); + rootChildren = GetUserRootFolder().Children.ToList(); + await RootFolder.RefreshMetadata(cancellationToken).ConfigureAwait(false); progress.Report(.5); diff --git a/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs b/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs index 09b68c8ea3..245fe8ebe5 100644 --- a/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs +++ b/Emby.Server.Implementations/UserViews/DynamicImageProvider.cs @@ -151,17 +151,7 @@ namespace Emby.Server.Implementations.UserViews string[] collectionStripViewTypes = { CollectionType.Movies, - CollectionType.TvShows, - CollectionType.Music, - CollectionType.Games, - CollectionType.Books, - CollectionType.MusicVideos, - CollectionType.HomeVideos, - CollectionType.BoxSets, - CollectionType.LiveTv, - CollectionType.Playlists, - CollectionType.Photos, - string.Empty + CollectionType.TvShows }; return collectionStripViewTypes.Contains(view.ViewType ?? string.Empty); -- cgit v1.2.3