New: Add size to more history events

(cherry picked from commit 0d064181941fc6d149fc2f891661e059758d5428)

Closes #9672
pull/9683/head
Mark McDowall 10 months ago committed by Bogdan
parent 0ecb1d0706
commit 833340f8bd

@ -203,6 +203,7 @@ namespace NzbDrone.Core.History
history.Data.Add("DownloadClientName", message.DownloadClientInfo?.Name);
history.Data.Add("ReleaseGroup", message.MovieInfo.ReleaseGroup);
history.Data.Add("CustomFormatScore", message.MovieInfo.CustomFormatScore.ToString());
history.Data.Add("Size", message.MovieInfo.Size.ToString());
history.Data.Add("IndexerFlags", message.ImportedMovie.IndexerFlags.ToString());
_historyRepository.Insert(history);
@ -228,6 +229,7 @@ namespace NzbDrone.Core.History
history.Data.Add("Reason", message.Reason.ToString());
history.Data.Add("ReleaseGroup", message.MovieFile.ReleaseGroup);
history.Data.Add("Size", message.MovieFile.Size.ToString());
history.Data.Add("IndexerFlags", message.MovieFile.IndexerFlags.ToString());
_historyRepository.Insert(history);
@ -255,6 +257,7 @@ namespace NzbDrone.Core.History
history.Data.Add("Path", path);
history.Data.Add("RelativePath", relativePath);
history.Data.Add("ReleaseGroup", message.MovieFile.ReleaseGroup);
history.Data.Add("Size", message.MovieFile.Size.ToString());
history.Data.Add("IndexerFlags", message.MovieFile.IndexerFlags.ToString());
_historyRepository.Insert(history);
@ -277,6 +280,7 @@ namespace NzbDrone.Core.History
history.Data.Add("DownloadClientName", message.DownloadClientInfo.Name);
history.Data.Add("Message", message.Message);
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteMovie?.ParsedMovieInfo?.ReleaseGroup);
history.Data.Add("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString());
_historyRepository.Insert(history);
}
@ -303,6 +307,7 @@ namespace NzbDrone.Core.History
history.Data.Add("DownloadClientName", message.TrackedDownload?.DownloadItem.DownloadClientInfo.Name);
history.Data.Add("Message", message.Message);
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteMovie?.ParsedMovieInfo?.ReleaseGroup);
history.Data.Add("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString());
_historyRepository.Insert(history);
}

Loading…
Cancel
Save