mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Converted jobs to dynamic
This commit is contained in:
parent
93402f4932
commit
a4dde81ceb
42 changed files with 166 additions and 170 deletions
|
@ -38,16 +38,16 @@ namespace NzbDrone.Core.Jobs
|
|||
get { return TimeSpan.FromHours(6); }
|
||||
}
|
||||
|
||||
public virtual void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
||||
public virtual void Start(ProgressNotification notification, dynamic options)
|
||||
{
|
||||
IList<Series> seriesToScan;
|
||||
if (targetId == 0)
|
||||
if (options == null || options.SeriesId == 0)
|
||||
{
|
||||
seriesToScan = _seriesProvider.GetAllSeries().OrderBy(o => SortHelper.SkipArticles(o.Title)).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
seriesToScan = new List<Series>() { _seriesProvider.GetSeries(targetId) };
|
||||
seriesToScan = new List<Series>() { _seriesProvider.GetSeries(options.SeriesId) };
|
||||
}
|
||||
|
||||
foreach (var series in seriesToScan)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue