Fixed: Avoid notifications on reprocessing failed items in queue

This commit is contained in:
Bogdan 2025-03-06 19:15:59 +02:00
commit 342c82aa1f

View file

@ -166,8 +166,13 @@ namespace NzbDrone.Core.Download
new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.Item.Path), new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.Item.Path),
v.Errors))); v.Errors)));
// Mark as failed to prevent further attempts at processing
trackedDownload.State = TrackedDownloadState.ImportFailed;
// Publish event to notify album was imported incomplete // Publish event to notify album was imported incomplete
_eventAggregator.PublishEvent(new AlbumImportIncompleteEvent(trackedDownload)); _eventAggregator.PublishEvent(new AlbumImportIncompleteEvent(trackedDownload));
return;
} }
if (statusMessages.Any()) if (statusMessages.Any())