mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 01:05:19 +03:00
More efficient array creation (#11468)
This commit is contained in:
@@ -303,8 +303,8 @@ namespace Emby.Server.Implementations.Library
|
||||
{
|
||||
// Handle situations with the grouping setting, e.g. movies showing up in tv, etc.
|
||||
// Thanks to mixed content libraries included in the UserView
|
||||
var hasCollectionType = parents.OfType<UserView>().ToArray();
|
||||
if (hasCollectionType.Length > 0)
|
||||
var hasCollectionType = parents.OfType<UserView>().ToList();
|
||||
if (hasCollectionType.Count > 0)
|
||||
{
|
||||
if (hasCollectionType.All(i => i.CollectionType == CollectionType.movies))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user