mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-28 04:51:54 +00:00
Use Order() introduced in .NET 7 (#8923)
This commit is contained in:
@@ -131,7 +131,7 @@ namespace Emby.Server.Implementations.IO
|
||||
.OfType<Folder>()
|
||||
.SelectMany(f => f.PhysicalLocations)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(i => i);
|
||||
.Order();
|
||||
|
||||
foreach (var path in paths)
|
||||
{
|
||||
|
||||
@@ -1175,7 +1175,7 @@ namespace Emby.Server.Implementations.Library
|
||||
}
|
||||
})
|
||||
.Where(i => i is not null)
|
||||
.OrderBy(i => i)
|
||||
.Order()
|
||||
.ToArray(),
|
||||
|
||||
CollectionType = GetCollectionType(dir)
|
||||
|
||||
@@ -529,7 +529,7 @@ namespace Emby.Server.Implementations.Library.Resolvers.Movies
|
||||
}
|
||||
|
||||
return false;
|
||||
}).OrderBy(i => i).ToList();
|
||||
}).Order().ToList();
|
||||
|
||||
// If different video types were found, don't allow this
|
||||
if (videoTypes.Distinct().Count() > 1)
|
||||
|
||||
Reference in New Issue
Block a user