mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 21:33:02 +02:00
Apply suggestions from code review
This commit is contained in:
parent
eaa5575b23
commit
08152d2a98
|
@ -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…
Reference in a new issue