Remove null items from the item added queue

This commit is contained in:
crobibero 2021-01-29 07:22:36 -07:00
parent b14b0258b0
commit 19b16c1353

View File

@ -51,6 +51,13 @@ namespace Jellyfin.Plugin.Webhook.Notifiers.ItemAddedNotifier
foreach (var (key, container) in currentItems)
{
var item = _libraryManager.GetItemById(key);
if (item == null)
{
// Remove item from queue.
_itemProcessQueue.TryRemove(key, out _);
return;
}
_logger.LogDebug("Item {ItemName}", item.Name);
// Metadata not refreshed yet and under retry limit.