1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 15:32:31 +01:00

Added todo to get UtcOffset from tvrage

This commit is contained in:
Mark McDowall 2013-04-12 08:37:25 -07:00
parent d663d9cd5a
commit 3f83112086

View File

@ -67,26 +67,27 @@ namespace NzbDrone.Core.Tv
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);