EpisodeAiredAfter added to AddSeries UI

New: Ability to skip episodes that aired before a certain date, per
series.
This commit is contained in:
Mark McDowall 2012-09-18 23:06:09 -07:00
commit 6c78187601
10 changed files with 51 additions and 13 deletions

View file

@ -110,7 +110,7 @@ namespace NzbDrone.Core.Providers
return series;
}
public virtual void AddSeries(string title, string path, int tvDbSeriesId, int qualityProfileId)
public virtual void AddSeries(string title, string path, int tvDbSeriesId, int qualityProfileId, DateTime? airedAfter)
{
Logger.Info("Adding Series [{0}] Path: [{1}]", tvDbSeriesId, path);
@ -131,6 +131,9 @@ namespace NzbDrone.Core.Providers
repoSeries.SeasonFolder = _configProvider.UseSeasonFolder;
repoSeries.BacklogSetting = BacklogSettingType.Inherit;
if (airedAfter.HasValue)
repoSeries.DownloadEpisodesAiredAfter = airedAfter;
_database.Insert(repoSeries);
}