mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-09 15:20:34 +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
|
try
|
||||||
{
|
{
|
||||||
var channels = await GetChannels(host, enableCache, cancellationToken).ConfigureAwait(false);
|
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)
|
if (!enableCache)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue