Converted jobs to dynamic

This commit is contained in:
Mark McDowall 2012-09-10 12:04:17 -07:00
commit a4dde81ceb
42 changed files with 166 additions and 170 deletions

View file

@ -41,16 +41,16 @@ namespace NzbDrone.Core.Jobs
get { return TimeSpan.FromHours(12); }
}
public virtual void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
public virtual void Start(ProgressNotification notification, dynamic options)
{
IList<Series> seriesToUpdate;
if (targetId == 0)
if (options == null || options.SeriesId == 0)
{
seriesToUpdate = _seriesProvider.GetAllSeries().OrderBy(o => SortHelper.SkipArticles(o.Title)).ToList();
}
else
{
seriesToUpdate = new List<Series> { _seriesProvider.GetSeries(targetId) };
seriesToUpdate = new List<Series> { _seriesProvider.GetSeries(options.SeriesId) };
}
//Update any Daily Series in the DB with the IsDaily flag