mirror of
https://github.com/Radarr/Radarr
synced 2025-01-04 06:23:32 +00:00
Fixed: Some History Events don't Save Due to Languages
This commit is contained in:
parent
2758adcc8c
commit
4af18f7d4a
1 changed files with 4 additions and 0 deletions
|
@ -160,6 +160,7 @@ public void Handle(MovieImportedEvent message)
|
|||
EventType = HistoryEventType.DownloadFolderImported,
|
||||
Date = DateTime.UtcNow,
|
||||
Quality = message.MovieInfo.Quality,
|
||||
Languages = message.MovieInfo.Languages,
|
||||
SourceTitle = message.ImportedMovie.SceneName ?? Path.GetFileNameWithoutExtension(message.MovieInfo.Path),
|
||||
DownloadId = downloadId,
|
||||
MovieId = movie.Id,
|
||||
|
@ -187,6 +188,7 @@ public void Handle(MovieFileDeletedEvent message)
|
|||
EventType = HistoryEventType.MovieFileDeleted,
|
||||
Date = DateTime.UtcNow,
|
||||
Quality = message.MovieFile.Quality,
|
||||
Languages = message.MovieFile.Languages,
|
||||
SourceTitle = message.MovieFile.Path,
|
||||
MovieId = message.MovieFile.MovieId
|
||||
};
|
||||
|
@ -208,6 +210,7 @@ public void Handle(MovieFileRenamedEvent message)
|
|||
EventType = HistoryEventType.MovieFileRenamed,
|
||||
Date = DateTime.UtcNow,
|
||||
Quality = message.MovieFile.Quality,
|
||||
Languages = message.MovieFile.Languages,
|
||||
SourceTitle = message.OriginalPath,
|
||||
MovieId = message.MovieFile.MovieId,
|
||||
};
|
||||
|
@ -274,6 +277,7 @@ public void Handle(DownloadFailedEvent message)
|
|||
EventType = HistoryEventType.DownloadFailed,
|
||||
Date = DateTime.UtcNow,
|
||||
Quality = message.Quality,
|
||||
Languages = message.Languages,
|
||||
SourceTitle = message.SourceTitle,
|
||||
MovieId = message.MovieId,
|
||||
DownloadId = message.DownloadId
|
||||
|
|
Loading…
Reference in a new issue