New: Add FileId to History data for import events

pull/4308/head
Mark McDowall 4 years ago
parent 577604fccc
commit 952a7248c9

@ -211,8 +211,7 @@ namespace NzbDrone.Core.History
Language = message.EpisodeInfo.Language
};
//Won't have a value since we publish this event before saving to DB.
//history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
history.Data.Add("DroppedPath", message.EpisodeInfo.Path);
history.Data.Add("ImportedPath", Path.Combine(message.EpisodeInfo.Series.Path, message.ImportedEpisode.RelativePath));
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Type);

@ -124,7 +124,7 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport
}
}
_mediaFileService.Add(episodeFile);
episodeFile = _mediaFileService.Add(episodeFile);
importResults.Add(new ImportResult(importDecision));
if (newDownload)

Loading…
Cancel
Save