mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
Don't store grabbed events for clients that don't download IDs
Fixes #1420
This commit is contained in:
parent
39bbb67f0a
commit
a41e8deb03
1 changed files with 6 additions and 0 deletions
|
@ -101,6 +101,12 @@ namespace NzbDrone.Core.Download.History
|
||||||
|
|
||||||
public void Handle(AlbumGrabbedEvent message)
|
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
|
var history = new DownloadHistory
|
||||||
{
|
{
|
||||||
EventType = DownloadHistoryEventType.DownloadGrabbed,
|
EventType = DownloadHistoryEventType.DownloadGrabbed,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue