|
|
|
@ -263,7 +263,9 @@ 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("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString());
|
|
|
|
|
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteBook?.ParsedBookInfo?.ReleaseGroup ?? message.Data.GetValueOrDefault(EntityHistory.RELEASE_GROUP));
|
|
|
|
|
history.Data.Add("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString() ?? message.Data.GetValueOrDefault(EntityHistory.SIZE));
|
|
|
|
|
history.Data.Add("Indexer", message.TrackedDownload?.RemoteBook?.Release?.Indexer ?? message.Data.GetValueOrDefault(EntityHistory.INDEXER));
|
|
|
|
|
|
|
|
|
|
_historyRepository.Insert(history);
|
|
|
|
|
}
|
|
|
|
@ -373,6 +375,7 @@ namespace NzbDrone.Core.History
|
|
|
|
|
history.Data.Add("Message", message.Message);
|
|
|
|
|
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteBook?.ParsedBookInfo?.ReleaseGroup);
|
|
|
|
|
history.Data.Add("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString());
|
|
|
|
|
history.Data.Add("Indexer", message.TrackedDownload?.RemoteBook?.Release?.Indexer);
|
|
|
|
|
|
|
|
|
|
historyToAdd.Add(history);
|
|
|
|
|
}
|
|
|
|
|