mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2025-02-17 05:27:38 +00:00
Remove null items from the item added queue
This commit is contained in:
parent
b14b0258b0
commit
19b16c1353
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user