|
|
@ -34,7 +34,13 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
|
|
|
|
|
|
|
|
public void Start(ProgressNotification notification, dynamic options)
|
|
|
|
public void Start(ProgressNotification notification, dynamic options)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DeleteSeries(notification, options.SeriesId, options.DeleteFiless);
|
|
|
|
if (options == null)
|
|
|
|
|
|
|
|
throw new ArgumentNullException("options");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (options.SeriesId == 0)
|
|
|
|
|
|
|
|
throw new ArgumentNullException("options.SeriesId");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DeleteSeries(notification, options.SeriesId, options.DeleteFiles);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void DeleteSeries(ProgressNotification notification, int seriesId, bool deleteFiles)
|
|
|
|
private void DeleteSeries(ProgressNotification notification, int seriesId, bool deleteFiles)
|
|
|
|