1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: Some History Events don't Save Due to Languages

This commit is contained in:
Qstick 2019-07-25 22:52:33 -04:00
parent 2758adcc8c
commit 4af18f7d4a

View File

@ -160,6 +160,7 @@ public void Handle(MovieImportedEvent message)
EventType = HistoryEventType.DownloadFolderImported, EventType = HistoryEventType.DownloadFolderImported,
Date = DateTime.UtcNow, Date = DateTime.UtcNow,
Quality = message.MovieInfo.Quality, Quality = message.MovieInfo.Quality,
Languages = message.MovieInfo.Languages,
SourceTitle = message.ImportedMovie.SceneName ?? Path.GetFileNameWithoutExtension(message.MovieInfo.Path), SourceTitle = message.ImportedMovie.SceneName ?? Path.GetFileNameWithoutExtension(message.MovieInfo.Path),
DownloadId = downloadId, DownloadId = downloadId,
MovieId = movie.Id, MovieId = movie.Id,
@ -187,6 +188,7 @@ public void Handle(MovieFileDeletedEvent message)
EventType = HistoryEventType.MovieFileDeleted, EventType = HistoryEventType.MovieFileDeleted,
Date = DateTime.UtcNow, Date = DateTime.UtcNow,
Quality = message.MovieFile.Quality, Quality = message.MovieFile.Quality,
Languages = message.MovieFile.Languages,
SourceTitle = message.MovieFile.Path, SourceTitle = message.MovieFile.Path,
MovieId = message.MovieFile.MovieId MovieId = message.MovieFile.MovieId
}; };
@ -208,6 +210,7 @@ public void Handle(MovieFileRenamedEvent message)
EventType = HistoryEventType.MovieFileRenamed, EventType = HistoryEventType.MovieFileRenamed,
Date = DateTime.UtcNow, Date = DateTime.UtcNow,
Quality = message.MovieFile.Quality, Quality = message.MovieFile.Quality,
Languages = message.MovieFile.Languages,
SourceTitle = message.OriginalPath, SourceTitle = message.OriginalPath,
MovieId = message.MovieFile.MovieId, MovieId = message.MovieFile.MovieId,
}; };
@ -274,6 +277,7 @@ public void Handle(DownloadFailedEvent message)
EventType = HistoryEventType.DownloadFailed, EventType = HistoryEventType.DownloadFailed,
Date = DateTime.UtcNow, Date = DateTime.UtcNow,
Quality = message.Quality, Quality = message.Quality,
Languages = message.Languages,
SourceTitle = message.SourceTitle, SourceTitle = message.SourceTitle,
MovieId = message.MovieId, MovieId = message.MovieId,
DownloadId = message.DownloadId DownloadId = message.DownloadId