From 9b80478f6fa038d55e6b2b9d4e4fd1f22e3adf95 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 11 Jul 2013 20:38:25 -0700 Subject: [PATCH] No longer setting AirDate to null if it aired before series start date This was causing an issue which is caused by bad data coming from trakt... --- NzbDrone.Core/Tv/RefreshSeriesService.cs | 4 +--- NzbDrone.Core/Tv/SeriesService.cs | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/NzbDrone.Core/Tv/RefreshSeriesService.cs b/NzbDrone.Core/Tv/RefreshSeriesService.cs index 9f08486ce..e1ca59db5 100644 --- a/NzbDrone.Core/Tv/RefreshSeriesService.cs +++ b/NzbDrone.Core/Tv/RefreshSeriesService.cs @@ -144,8 +144,6 @@ private void RefreshEpisodeInfo(Series series, IEnumerable remoteEpisod episodeToUpdate.Overview = episode.Overview; episodeToUpdate.AirDate = episode.AirDate; - if (episodeToUpdate.AirDate < series.FirstAired) episodeToUpdate.AirDate = null; - successCount++; } catch (Exception e) @@ -201,7 +199,7 @@ private void RefreshEpisodeInfo(Series series, IEnumerable remoteEpisod /* private void DeleteEpisodesNotAvailableAnymore(Series series, IEnumerable onlineEpisodes) { //Todo: This will not work as currently implemented - what are we trying to do here? - * //We were trying to remove episodes that were once on tvdb but were removed, for whatever reason, instead of polluting our DB with them. + //Todo: We were trying to remove episodes that were once on tvdb but were removed, for whatever reason, instead of polluting our DB with them. return; _logger.Trace("Starting deletion of episodes that no longer exist in TVDB: {0}", series.Title.WithDefault(series.Id)); foreach (var episode in onlineEpisodes) diff --git a/NzbDrone.Core/Tv/SeriesService.cs b/NzbDrone.Core/Tv/SeriesService.cs index 5dccbc909..864c3eed4 100644 --- a/NzbDrone.Core/Tv/SeriesService.cs +++ b/NzbDrone.Core/Tv/SeriesService.cs @@ -96,7 +96,7 @@ public void UpdateFromSeriesEditor(IList editedSeries) series.QualityProfileId = edited.QualityProfileId; series.Monitored = edited.Monitored; series.SeasonFolder = edited.SeasonFolder; - //series.Path = edited.Path; + series.Path = edited.Path; series.CustomStartDate = edited.CustomStartDate; _seriesRepository.Update(series); @@ -109,7 +109,6 @@ public Series FindByTvdbId(int tvdbId) return _seriesRepository.FindByTvdbId(tvdbId); } - public Series FindBySlug(string slug) { var series = _seriesRepository.FindBySlug(slug);