From 3f831120865e396fa9520bc0c36023b020682f4b Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 12 Apr 2013 08:37:25 -0700 Subject: [PATCH] Added todo to get UtcOffset from tvrage --- NzbDrone.Core/Tv/SeriesService.cs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/NzbDrone.Core/Tv/SeriesService.cs b/NzbDrone.Core/Tv/SeriesService.cs index a8892f032..37691c265 100644 --- a/NzbDrone.Core/Tv/SeriesService.cs +++ b/NzbDrone.Core/Tv/SeriesService.cs @@ -67,26 +67,27 @@ public bool IsMonitored(int id) public Series UpdateSeriesInfo(int seriesId) { var series = _seriesRepository.Get(seriesId); - var tvDbSeries = _seriesInfoProxy.GetSeriesInfo(series.TvDbId); + var seriesInfo = _seriesInfoProxy.GetSeriesInfo(series.TvDbId); - series.Title = tvDbSeries.Title; - series.AirTime = tvDbSeries.AirTime; - series.Overview = tvDbSeries.Overview; - series.Status = tvDbSeries.Status; - series.CleanTitle = Parser.Parser.NormalizeTitle(tvDbSeries.Title); + series.Title = seriesInfo.Title; + series.AirTime = seriesInfo.AirTime; + series.Overview = seriesInfo.Overview; + series.Status = seriesInfo.Status; + series.CleanTitle = Parser.NormalizeTitle(seriesInfo.Title); series.LastInfoSync = DateTime.Now; - series.Runtime = tvDbSeries.Runtime; - series.Images = tvDbSeries.Images; - series.Network = tvDbSeries.Network; - series.FirstAired = tvDbSeries.FirstAired; + series.Runtime = seriesInfo.Runtime; + series.Images = seriesInfo.Images; + series.Network = seriesInfo.Network; + series.FirstAired = seriesInfo.FirstAired; _seriesRepository.Update(series); + //Todo: We need to get the UtcOffset from TVRage, since its not available from trakt + _eventAggregator.Publish(new SeriesUpdatedEvent(series)); return series; } - public Series GetSeries(int seriesId) { return _seriesRepository.Get(seriesId);