From 457687a5c98bbb8ad85a948df048cb38a41470f6 Mon Sep 17 00:00:00 2001 From: Hossy Date: Wed, 7 Aug 2024 16:37:41 -0500 Subject: [PATCH] temporary fix for issue #4977 until a more thoughtful fix can be implemented --- src/NzbDrone.Core/Download/FailedDownloadService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/FailedDownloadService.cs b/src/NzbDrone.Core/Download/FailedDownloadService.cs index 72b33dca8..8e1722457 100644 --- a/src/NzbDrone.Core/Download/FailedDownloadService.cs +++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs @@ -129,7 +129,7 @@ namespace NzbDrone.Core.Download private void PublishDownloadFailedEvent(List historyItems, string message, TrackedDownload trackedDownload = null, bool skipRedownload = false) { - var historyItem = historyItems.Last(); + var historyItem = historyItems.First(); // items are returned in reverse chronological order, so first is the most recent Enum.TryParse(historyItem.Data.GetValueOrDefault(EntityHistory.RELEASE_SOURCE, ReleaseSourceType.Unknown.ToString()), out ReleaseSourceType releaseSource); var downloadFailedEvent = new DownloadFailedEvent