Apply suggestions from code review

pull/6397/head
Claus Vium 3 years ago committed by GitHub
parent eaa5575b23
commit 08152d2a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
{

Loading…
Cancel
Save