update xml parsing

This commit is contained in:
Luke Pulverenti
2016-12-02 15:10:35 -05:00
parent 12ff39eeaf
commit aef79a796d
9 changed files with 203 additions and 79 deletions

View File

@@ -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);

View File

@@ -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);