Apply suggestions from code review

This commit is contained in:
Claus Vium 2021-08-11 12:50:35 +02:00 committed by GitHub
parent eaa5575b23
commit 08152d2a98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,8 +83,9 @@ 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)));
list.AddRange(channels);
list.AddRange(newChannels);
if (!enableCache)
{