mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-03 22:57:18 +02:00
New: Add size to more history events
(cherry picked from commit 0d064181941fc6d149fc2f891661e059758d5428) Closes #9672
This commit is contained in:
parent
0ecb1d0706
commit
833340f8bd
@ -203,6 +203,7 @@ public void Handle(MovieFileImportedEvent message)
|
||||
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 @@ public void Handle(MovieFileDeletedEvent message)
|
||||
|
||||
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 @@ public void Handle(MovieFileRenamedEvent message)
|
||||
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 @@ public void Handle(DownloadIgnoredEvent message)
|
||||
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 @@ public void Handle(DownloadFailedEvent message)
|
||||
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…
Reference in New Issue
Block a user