mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-25 01:06:30 +00:00
Added todo to get UtcOffset from tvrage
This commit is contained in:
parent
d663d9cd5a
commit
3f83112086
1 changed files with 12 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue