mirror of
https://github.com/Readarr/Readarr
synced 2025-12-27 18:54:54 +01:00
New: Add size to more history events
(cherry picked from commit 0d064181941fc6d149fc2f891661e059758d5428) Closes #3250
This commit is contained in:
parent
1065a6283c
commit
db6712f030
1 changed files with 5 additions and 1 deletions
|
|
@ -237,6 +237,7 @@ public void Handle(TrackImportedEvent message)
|
|||
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Type);
|
||||
history.Data.Add("DownloadClientName", message.DownloadClientInfo?.Name);
|
||||
history.Data.Add("ReleaseGroup", message.BookInfo.ReleaseGroup);
|
||||
history.Data.Add("Size", message.BookInfo.Size.ToString());
|
||||
|
||||
_historyRepository.Insert(history);
|
||||
}
|
||||
|
|
@ -259,6 +260,7 @@ public void Handle(DownloadFailedEvent message)
|
|||
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());
|
||||
|
||||
_historyRepository.Insert(history);
|
||||
}
|
||||
|
|
@ -311,6 +313,7 @@ public void Handle(BookFileRenamedEvent message)
|
|||
history.Data.Add("SourcePath", sourcePath);
|
||||
history.Data.Add("Path", path);
|
||||
history.Data.Add("ReleaseGroup", message.BookFile.ReleaseGroup);
|
||||
history.Data.Add("Size", message.BookFile.Size.ToString());
|
||||
|
||||
_historyRepository.Insert(history);
|
||||
}
|
||||
|
|
@ -362,8 +365,9 @@ public void Handle(DownloadIgnoredEvent message)
|
|||
};
|
||||
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo.Name);
|
||||
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteBook?.ParsedBookInfo?.ReleaseGroup);
|
||||
history.Data.Add("Message", message.Message);
|
||||
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteBook?.ParsedBookInfo?.ReleaseGroup);
|
||||
history.Data.Add("Size", message.TrackedDownload?.DownloadItem.TotalSize.ToString());
|
||||
|
||||
historyToAdd.Add(history);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue