diff options
| author | Bond_009 <bond.009@outlook.com> | 2022-12-19 15:21:42 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2022-12-19 15:21:42 +0100 |
| commit | 6481376b81c52af0b29eea997ce44de0de862ac8 (patch) | |
| tree | 046163c8d357783439f9b849bc07012abf3fd206 /Emby.Server.Implementations/LiveTv | |
| parent | 411246e90f19f652168878e0edc703fdc9ff32d9 (diff) | |
Use DistinctBy introduced in .NET 6
Diffstat (limited to 'Emby.Server.Implementations/LiveTv')
| -rw-r--r-- | Emby.Server.Implementations/LiveTv/LiveTvManager.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs index 7afc7959c1..4003468d0d 100644 --- a/Emby.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/Emby.Server.Implementations/LiveTv/LiveTvManager.cs @@ -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(); |
