Address comments

This commit is contained in:
Bond-009 2019-02-14 17:02:46 +01:00
parent bca569da42
commit 0fbc4545d1

View File

@ -44,17 +44,17 @@ namespace Emby.Server.Implementations.Channels
{
var installedChannelIds = ((ChannelManager)_channelManager).GetInstalledChannelIds();
var databaseIds = _libraryManager.GetItemList(new InternalItemsQuery
var uninstalledChannels = _libraryManager.GetItemList(new InternalItemsQuery
{
IncludeItemTypes = new[] { typeof(Channel).Name },
ExcludeItemIds = installedChannelIds.ToArray()
});
foreach (var channel in databaseIds.Cast<Channel>())
foreach (var channel in uninstalledChannels)
{
cancellationToken.ThrowIfCancellationRequested();
CleanChannel(channel, cancellationToken);
CleanChannel((Channel)channel, cancellationToken);
}
}