diff --git a/src/NzbDrone.Core/Download/DownloadIgnoredEvent.cs b/src/NzbDrone.Core/Download/DownloadIgnoredEvent.cs index 9df6afbf8..76e2a0292 100644 --- a/src/NzbDrone.Core/Download/DownloadIgnoredEvent.cs +++ b/src/NzbDrone.Core/Download/DownloadIgnoredEvent.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using NzbDrone.Common.Messaging; +using NzbDrone.Core.Download.TrackedDownloads; using NzbDrone.Core.Languages; using NzbDrone.Core.Qualities; @@ -13,6 +14,7 @@ namespace NzbDrone.Core.Download public string SourceTitle { get; set; } public DownloadClientItemClientInfo DownloadClientInfo { get; set; } public string DownloadId { get; set; } + public TrackedDownload TrackedDownload { get; set; } public string Message { get; set; } } } diff --git a/src/NzbDrone.Core/Download/IgnoredDownloadService.cs b/src/NzbDrone.Core/Download/IgnoredDownloadService.cs index 29807ea26..d47b9146b 100644 --- a/src/NzbDrone.Core/Download/IgnoredDownloadService.cs +++ b/src/NzbDrone.Core/Download/IgnoredDownloadService.cs @@ -39,6 +39,7 @@ namespace NzbDrone.Core.Download SourceTitle = trackedDownload.DownloadItem.Title, DownloadClientInfo = trackedDownload.DownloadItem.DownloadClientInfo, DownloadId = trackedDownload.DownloadItem.DownloadId, + TrackedDownload = trackedDownload, Message = "Manually ignored" }; diff --git a/src/NzbDrone.Core/History/HistoryService.cs b/src/NzbDrone.Core/History/HistoryService.cs index 5e02843b0..558125df3 100644 --- a/src/NzbDrone.Core/History/HistoryService.cs +++ b/src/NzbDrone.Core/History/HistoryService.cs @@ -201,6 +201,7 @@ namespace NzbDrone.Core.History history.Data.Add("ImportedPath", Path.Combine(movie.Path, message.ImportedMovie.RelativePath)); history.Data.Add("DownloadClient", message.DownloadClientInfo?.Type); history.Data.Add("DownloadClientName", message.DownloadClientInfo?.Name); + history.Data.Add("ReleaseGroup", message.MovieInfo.ReleaseGroup); _historyRepository.Insert(history); } @@ -224,6 +225,7 @@ namespace NzbDrone.Core.History }; history.Data.Add("Reason", message.Reason.ToString()); + history.Data.Add("ReleaseGroup", message.MovieFile.ReleaseGroup); _historyRepository.Insert(history); } @@ -249,6 +251,7 @@ namespace NzbDrone.Core.History history.Data.Add("SourceRelativePath", sourceRelativePath); history.Data.Add("Path", path); history.Data.Add("RelativePath", relativePath); + history.Data.Add("ReleaseGroup", message.MovieFile.ReleaseGroup); _historyRepository.Insert(history); } @@ -269,6 +272,7 @@ namespace NzbDrone.Core.History history.Data.Add("DownloadClient", message.DownloadClientInfo.Type); history.Data.Add("DownloadClientName", message.DownloadClientInfo.Name); history.Data.Add("Message", message.Message); + history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteMovie?.ParsedMovieInfo?.ReleaseGroup); _historyRepository.Insert(history); } @@ -294,6 +298,7 @@ namespace NzbDrone.Core.History history.Data.Add("DownloadClient", message.DownloadClient); history.Data.Add("DownloadClientName", message.TrackedDownload?.DownloadItem.DownloadClientInfo.Name); history.Data.Add("Message", message.Message); + history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteMovie?.ParsedMovieInfo?.ReleaseGroup); _historyRepository.Insert(history); }