mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
update xml parsing
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user