Improved: Episodes that are in the future AND have no title will not be added to db (place holder episodes in TVDB)

This commit is contained in:
kay.one 2012-02-04 20:34:28 -08:00
commit 9fcb3a4573
2 changed files with 148 additions and 0 deletions

View file

@ -282,6 +282,11 @@ namespace NzbDrone.Core.Providers
{
try
{
//skip episodes that are too far in the future and have no title.
if ((episode.FirstAired > DateTime.Now.AddDays(2) || episode.FirstAired.Year < 1900) &&
string.IsNullOrWhiteSpace(episode.EpisodeName))
continue;
Logger.Trace("Updating info for [{0}] - S{1}E{2}", tvDbSeriesInfo.SeriesName, episode.SeasonNumber, episode.EpisodeNumber);
//first check using tvdbId, this should cover cases when and episode number in a season is changed