Update Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs

This commit is contained in:
Claus Vium
2021-08-16 08:52:16 +02:00
committed by GitHub
parent 08152d2a98
commit e3c2a8a3be

View File

@@ -83,7 +83,7 @@ namespace Emby.Server.Implementations.LiveTv.TunerHosts
try
{
var channels = await GetChannels(host, enableCache, cancellationToken).ConfigureAwait(false);
var newChannels = channels.Where(i => !list.Any(l => string.Equals(i.Id, l.Id, StringComparison.OrdinalIgnoreCase)));
var newChannels = channels.Where(i => !list.Any(l => string.Equals(i.Id, l.Id, StringComparison.OrdinalIgnoreCase))).ToList();
list.AddRange(newChannels);