From 6fb24128f8c8c10d3359c8d01c63c889ebd99a34 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 25 Apr 2020 14:12:38 -0700 Subject: [PATCH] Fixed: Episodes removed from queue re-appearing on refresh Fixes #249 (cherry picked from commit 1a921c09e5180e283f52411dd2d0344a96015c0c) --- src/NzbDrone.Core/Download/History/DownloadHistoryService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs index b479adece..d5c0bcdea 100644 --- a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs +++ b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs @@ -62,6 +62,11 @@ namespace NzbDrone.Core.Download.History // Events are ordered by date descending. We'll return the most recent expected event. foreach (var e in events) { + if (e.EventType == DownloadHistoryEventType.DownloadIgnored) + { + return e; + } + if (e.EventType == DownloadHistoryEventType.DownloadGrabbed) { return e;