The Free Software Media System - Server Backend & API
Address comments
Bond-0090fbc4545d1b9
diff --git a/Emby.Server.Implementations/Channels/ChannelPostScanTask.cs b/Emby.Server.Implementations/Channels/ChannelPostScanTask.csindex ec85ffa4d4..3c7cbb1159 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);}}