mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Converted jobs to dynamic
This commit is contained in:
@@ -36,15 +36,15 @@ namespace NzbDrone.Core.Jobs
|
||||
get { return TimeSpan.FromTicks(0); }
|
||||
}
|
||||
|
||||
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
||||
public void Start(ProgressNotification notification, dynamic options)
|
||||
{
|
||||
List<Series> seriesToRefresh;
|
||||
|
||||
if (targetId <= 0)
|
||||
if (options == null || options.SeriesId <= 0)
|
||||
seriesToRefresh = _seriesProvider.GetAllSeries().ToList();
|
||||
|
||||
else
|
||||
seriesToRefresh = new List<Series> { _seriesProvider.GetSeries(targetId) };
|
||||
seriesToRefresh = new List<Series> { _seriesProvider.GetSeries(options.SeriesId) };
|
||||
|
||||
foreach(var series in seriesToRefresh)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user