Update CleanCacheTask.cs

This commit is contained in:
rlauu 2024-09-23 20:14:59 +02:00
parent 9ff742013b
commit 1a8a0c799f

View File

@ -109,7 +109,7 @@ public class CleanCacheTask : IScheduledTask
var removedItems = false;
foreach (var ignoredItem in Plugin.Instance.IgnoreList.Values.ToList())
{
if (!Plugin.Instance.QueuedMediaItems.ContainsKey(ignoredItem.SeasonId))
if (!queue.ContainsKey(ignoredItem.SeasonId))
{
removedItems = true;
Plugin.Instance.IgnoreList.TryRemove(ignoredItem.SeasonId, out _);