aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-08-11 12:50:35 +0200
committerGitHub <noreply@github.com>2021-08-11 12:50:35 +0200
commit08152d2a981401d803d0c64aba51df3e7891fea6 (patch)
tree8bbe88bb66afc066dff499c2ae67ddfcd57c3b9c
parenteaa5575b232570453315431d5461a736831b88d2 (diff)
Apply suggestions from code review
-rw-r--r--Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs
index b3524f27c..de178ad5b 100644
--- a/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs
+++ b/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs
@@ -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)
{