mirror of
https://github.com/Radarr/Radarr
synced 2024-12-26 09:49:00 +00:00
Episode.AirDate will be nulled if its before Series.FirstAired
This commit is contained in:
parent
1809aefea2
commit
d33b152a44
1 changed files with 3 additions and 3 deletions
|
@ -65,8 +65,6 @@ private void RefreshSeriesInfo(Series series)
|
|||
{
|
||||
var tuple = _seriesInfo.GetSeriesInfo(series.TvdbId);
|
||||
|
||||
RefreshEpisodeInfo(series, tuple.Item2);
|
||||
|
||||
var seriesInfo = tuple.Item1;
|
||||
|
||||
series.Title = seriesInfo.Title;
|
||||
|
@ -81,7 +79,7 @@ private void RefreshSeriesInfo(Series series)
|
|||
series.FirstAired = seriesInfo.FirstAired;
|
||||
_seriesService.UpdateSeries(series);
|
||||
|
||||
//Todo: We need to get the UtcOffset from TVRage, since its not available from trakt
|
||||
RefreshEpisodeInfo(series, tuple.Item2);
|
||||
|
||||
_messageAggregator.PublishEvent(new SeriesUpdatedEvent(series));
|
||||
}
|
||||
|
@ -147,6 +145,8 @@ private void RefreshEpisodeInfo(Series series, IEnumerable<Episode> remoteEpisod
|
|||
episodeToUpdate.Overview = episode.Overview;
|
||||
episodeToUpdate.AirDate = episode.AirDate;
|
||||
|
||||
if (episodeToUpdate.AirDate < series.FirstAired) episodeToUpdate.AirDate = null;
|
||||
|
||||
successCount++;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Loading…
Reference in a new issue