mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Some History Events don't Save Due to Languages
This commit is contained in:
parent
2758adcc8c
commit
4af18f7d4a
@ -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 New Issue
Block a user