mirror of https://github.com/lidarr/Lidarr
Fixed: Null reference processing import with no download client info
This commit is contained in:
parent
933facd50c
commit
9c7b6efe09
|
@ -240,7 +240,7 @@ namespace NzbDrone.Core.History
|
|||
// history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
|
||||
history.Data.Add("DroppedPath", message.TrackInfo.Path);
|
||||
history.Data.Add("ImportedPath", message.ImportedTrack.Path);
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo.Name);
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Name);
|
||||
history.Data.Add("ReleaseGroup", message.TrackInfo.ReleaseGroup);
|
||||
|
||||
_historyRepository.Insert(history);
|
||||
|
@ -405,7 +405,7 @@ namespace NzbDrone.Core.History
|
|||
DownloadId = message.DownloadId
|
||||
};
|
||||
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo.Name);
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Name);
|
||||
history.Data.Add("ReleaseGroup", message.TrackedDownload?.RemoteAlbum?.ParsedAlbumInfo?.ReleaseGroup);
|
||||
history.Data.Add("Message", message.Message);
|
||||
|
||||
|
|
Loading…
Reference in New Issue