mirror of
https://github.com/Radarr/Radarr
synced 2025-12-25 09:42:24 +01:00
New: Store FileId on Import History Events
This commit is contained in:
parent
9b85f328a6
commit
35a53c5627
2 changed files with 2 additions and 3 deletions
|
|
@ -197,8 +197,7 @@ public void Handle(MovieImportedEvent message)
|
|||
MovieId = movie.Id,
|
||||
};
|
||||
|
||||
//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.ImportedMovie.Id.ToString());
|
||||
history.Data.Add("DroppedPath", message.MovieInfo.Path);
|
||||
history.Data.Add("ImportedPath", Path.Combine(movie.Path, message.ImportedMovie.RelativePath));
|
||||
history.Data.Add("DownloadClient", message.DownloadClientInfo?.Type);
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ public List<ImportResult> Import(List<ImportDecision> decisions, bool newDownloa
|
|||
movieFile.RelativePath = localMovie.Movie.Path.GetRelativePath(movieFile.Path);
|
||||
}
|
||||
|
||||
_mediaFileService.Add(movieFile);
|
||||
movieFile = _mediaFileService.Add(movieFile);
|
||||
importResults.Add(new ImportResult(importDecision));
|
||||
|
||||
if (newDownload)
|
||||
|
|
|
|||
Loading…
Reference in a new issue