Added todo to get UtcOffset from tvrage

pull/23/head
Mark McDowall 12 years ago
parent d663d9cd5a
commit 3f83112086

@ -67,26 +67,27 @@ namespace NzbDrone.Core.Tv
public Series UpdateSeriesInfo(int seriesId) public Series UpdateSeriesInfo(int seriesId)
{ {
var series = _seriesRepository.Get(seriesId); var series = _seriesRepository.Get(seriesId);
var tvDbSeries = _seriesInfoProxy.GetSeriesInfo(series.TvDbId); var seriesInfo = _seriesInfoProxy.GetSeriesInfo(series.TvDbId);
series.Title = tvDbSeries.Title; series.Title = seriesInfo.Title;
series.AirTime = tvDbSeries.AirTime; series.AirTime = seriesInfo.AirTime;
series.Overview = tvDbSeries.Overview; series.Overview = seriesInfo.Overview;
series.Status = tvDbSeries.Status; series.Status = seriesInfo.Status;
series.CleanTitle = Parser.Parser.NormalizeTitle(tvDbSeries.Title); series.CleanTitle = Parser.NormalizeTitle(seriesInfo.Title);
series.LastInfoSync = DateTime.Now; series.LastInfoSync = DateTime.Now;
series.Runtime = tvDbSeries.Runtime; series.Runtime = seriesInfo.Runtime;
series.Images = tvDbSeries.Images; series.Images = seriesInfo.Images;
series.Network = tvDbSeries.Network; series.Network = seriesInfo.Network;
series.FirstAired = tvDbSeries.FirstAired; series.FirstAired = seriesInfo.FirstAired;
_seriesRepository.Update(series); _seriesRepository.Update(series);
//Todo: We need to get the UtcOffset from TVRage, since its not available from trakt
_eventAggregator.Publish(new SeriesUpdatedEvent(series)); _eventAggregator.Publish(new SeriesUpdatedEvent(series));
return series; return series;
} }
public Series GetSeries(int seriesId) public Series GetSeries(int seriesId)
{ {
return _seriesRepository.Get(seriesId); return _seriesRepository.Get(seriesId);

Loading…
Cancel
Save