mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Storing nzo_id from SAB in history (data)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NLog;
|
||||
using System;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
using NzbDrone.Core.Messaging.Events;
|
||||
@@ -40,10 +41,17 @@ namespace NzbDrone.Core.Download
|
||||
return;
|
||||
}
|
||||
|
||||
downloadClient.DownloadNzb(remoteEpisode);
|
||||
var downloadClientId = downloadClient.DownloadNzb(remoteEpisode);
|
||||
var episodeGrabbedEvent = new EpisodeGrabbedEvent(remoteEpisode);
|
||||
|
||||
if (!String.IsNullOrWhiteSpace(downloadClientId))
|
||||
{
|
||||
episodeGrabbedEvent.DownloadClient = downloadClient.GetType().Name;
|
||||
episodeGrabbedEvent.DownloadClientId = downloadClientId;
|
||||
}
|
||||
|
||||
_logger.ProgressInfo("Report sent to download client. {0}", downloadTitle);
|
||||
_eventAggregator.PublishEvent(new EpisodeGrabbedEvent(remoteEpisode));
|
||||
_eventAggregator.PublishEvent(episodeGrabbedEvent);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user