mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Null reference processing import with no download client info
This commit is contained in:
parent
933facd50c
commit
9c7b6efe09
1 changed files with 2 additions and 2 deletions
|
@ -240,7 +240,7 @@ namespace NzbDrone.Core.History
|
||||||
// history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
|
// history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
|
||||||
history.Data.Add("DroppedPath", message.TrackInfo.Path);
|
history.Data.Add("DroppedPath", message.TrackInfo.Path);
|
||||||
history.Data.Add("ImportedPath", message.ImportedTrack.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);
|
history.Data.Add("ReleaseGroup", message.TrackInfo.ReleaseGroup);
|
||||||
|
|
||||||
_historyRepository.Insert(history);
|
_historyRepository.Insert(history);
|
||||||
|
@ -405,7 +405,7 @@ namespace NzbDrone.Core.History
|
||||||
DownloadId = message.DownloadId
|
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("ReleaseGroup", message.TrackedDownload?.RemoteAlbum?.ParsedAlbumInfo?.ReleaseGroup);
|
||||||
history.Data.Add("Message", message.Message);
|
history.Data.Add("Message", message.Message);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue