diff --git a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs index 92a47bddc8..b1d4b096f0 100644 --- a/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs +++ b/Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs @@ -318,7 +318,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV channels = (await GetChannelsAsync(true, CancellationToken.None).ConfigureAwait(false)).ToList(); } var channelIds = channels.Select(i => i.Id).ToList(); - epgData = GetEpgDataForChannels(channelIds); + epgData = channelIds.SelectMany(GetEpgDataForChannel).ToList(); } else { @@ -703,7 +703,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV { var channels = await GetChannelsAsync(true, CancellationToken.None).ConfigureAwait(false); var channelIds = channels.Select(i => i.Id).ToList(); - epgData = GetEpgDataForChannels(channelIds); + epgData = channelIds.SelectMany(GetEpgDataForChannel).ToList(); } else { @@ -784,7 +784,7 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV { var channels = await GetChannelsAsync(true, CancellationToken.None).ConfigureAwait(false); var channelIds = channels.Select(i => i.Id).ToList(); - epgData = GetEpgDataForChannels(channelIds); + epgData = channelIds.SelectMany(GetEpgDataForChannel).ToList(); } else { @@ -2617,10 +2617,6 @@ namespace Emby.Server.Implementations.LiveTv.EmbyTV return new List(); } } - private List GetEpgDataForChannels(List channelIds) - { - return channelIds.SelectMany(GetEpgDataForChannel).ToList(); - } private bool _disposed; public void Dispose()