aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-02-14 17:02:46 +0100
committerBond-009 <bond.009@outlook.com>2019-02-14 17:02:46 +0100
commit0fbc4545d1b9f8b3e5af3324d92ab0c0ef0fafe2 (patch)
treeb6eb673c48280a17b97df9841d16a8cb5373efdf
parentbca569da420075030fd7de6f9ed8d3abcb7a67cb (diff)
Address comments
-rw-r--r--Emby.Server.Implementations/Channels/ChannelPostScanTask.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs b/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
index ec85ffa4d..3c7cbb115 100644
--- a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
+++ b/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs
@@ -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);
}
}