Przeglądaj źródła

Address comments

Bond-009 6 lat temu
rodzic
commit
0fbc4545d1

+ 3 - 3
Emby.Server.Implementations/Channels/ChannelPostScanTask.cs

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