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

pull/3718/head
Qstick 6 years ago
parent 2758adcc8c
commit 4af18f7d4a

@ -160,6 +160,7 @@ namespace NzbDrone.Core.History
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 @@ namespace NzbDrone.Core.History
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 @@ namespace NzbDrone.Core.History
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 @@ namespace NzbDrone.Core.History
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

Loading…
Cancel
Save