mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Apply suggestions from code review
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user