The Free Software Media System - Server Backend & API
Apply suggestions from code review
Claus Vium08152d2a9814
diff --git a/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.cs b/Emby.Server.Implementations/LiveTv/TunerHosts/BaseTunerHost.csindex b3524f27c3..de178ad5b1 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.TunerHoststry{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){