From e7780af212b812eec8d762ec904414c5a1e59944 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 17 Oct 2013 18:28:30 -0700 Subject: [PATCH] Better name from LocalEpisode in EpisodeImportedEvent --- src/NzbDrone.Core/History/HistoryService.cs | 6 +++--- src/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/NzbDrone.Core/History/HistoryService.cs b/src/NzbDrone.Core/History/HistoryService.cs index ed09ae94e..09b372b2c 100644 --- a/src/NzbDrone.Core/History/HistoryService.cs +++ b/src/NzbDrone.Core/History/HistoryService.cs @@ -81,13 +81,13 @@ namespace NzbDrone.Core.History public void Handle(EpisodeImportedEvent message) { - foreach (var episode in message.DroppedEpisode.Episodes) + foreach (var episode in message.EpisodeInfo.Episodes) { var history = new History { EventType = HistoryEventType.DownloadFolderImported, Date = DateTime.UtcNow, - Quality = message.DroppedEpisode.Quality, + Quality = message.EpisodeInfo.Quality, SourceTitle = message.ImportedEpisode.SceneName, SeriesId = message.ImportedEpisode.SeriesId, EpisodeId = episode.Id @@ -95,7 +95,7 @@ namespace NzbDrone.Core.History //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("DroppedPath", message.DroppedEpisode.Path); + history.Data.Add("DroppedPath", message.EpisodeInfo.Path); history.Data.Add("ImportedPath", message.ImportedEpisode.Path); _historyRepository.Insert(history); diff --git a/src/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs b/src/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs index 2f166b069..38db811a6 100644 --- a/src/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs +++ b/src/NzbDrone.Core/MediaFiles/Events/EpisodeImportedEvent.cs @@ -5,12 +5,12 @@ namespace NzbDrone.Core.MediaFiles.Events { public class EpisodeImportedEvent : IEvent { - public LocalEpisode DroppedEpisode { get; private set; } + public LocalEpisode EpisodeInfo { get; private set; } public EpisodeFile ImportedEpisode { get; private set; } - public EpisodeImportedEvent(LocalEpisode droppedEpisode, EpisodeFile importedEpisode) + public EpisodeImportedEvent(LocalEpisode episodeInfo, EpisodeFile importedEpisode) { - DroppedEpisode = droppedEpisode; + EpisodeInfo = episodeInfo; ImportedEpisode = importedEpisode; } }