mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 04:34:18 +01:00
Use DistinctBy introduced in .NET 6
This commit is contained in:
@@ -2392,8 +2392,7 @@ namespace Emby.Server.Implementations.LiveTv
|
||||
.Select(i => _libraryManager.FindByPath(i, true))
|
||||
.Where(i => i is not null && i.IsVisibleStandalone(user))
|
||||
.SelectMany(i => _libraryManager.GetCollectionFolders(i))
|
||||
.GroupBy(x => x.Id)
|
||||
.Select(x => x.First())
|
||||
.DistinctBy(x => x.Id)
|
||||
.OrderBy(i => i.SortName)
|
||||
.ToList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user