From a41e8deb0394b9c3ea0cee9b8db59d8061d7d626 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 4 Jun 2022 15:00:05 -0500 Subject: [PATCH] Don't store grabbed events for clients that don't download IDs Fixes #1420 --- .../Download/History/DownloadHistoryService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs index 51d1a70cf..4983c18f1 100644 --- a/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs +++ b/src/NzbDrone.Core/Download/History/DownloadHistoryService.cs @@ -101,6 +101,12 @@ namespace NzbDrone.Core.Download.History public void Handle(AlbumGrabbedEvent message) { + // Don't store grabbed events for clients that don't download IDs + if (message.DownloadId.IsNullOrWhiteSpace()) + { + return; + } + var history = new DownloadHistory { EventType = DownloadHistoryEventType.DownloadGrabbed,