Skip to content

The Free Software Media System - Server Backend & API

Use collection expression

Patrick Barron5d3acd43e9ae
diff --git a/src/Jellyfin.LiveTv/Guide/GuideManager.cs b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
index 18831aa4eb..f157af5eaa 100644
--- a/src/Jellyfin.LiveTv/Guide/GuideManager.cs
+++ b/src/Jellyfin.LiveTv/Guide/GuideManager.cs
@@ -233,7 +233,7 @@ public class GuideManager : IGuideManager
var existingPrograms = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = [BaseItemKind.LiveTvProgram],
- ChannelIds = new[] { currentChannel.Id },
+ ChannelIds = [currentChannel.Id],
DtoOptions = new DtoOptions(true)
}).Cast<LiveTvProgram>().ToDictionary(i => i.Id);