mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
New: Store FileId on Import History Events
This commit is contained in:
parent
9b85f328a6
commit
35a53c5627
@ -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 New Issue
Block a user