1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-24 16:51:58 +00:00

Fixed issue with deleting series

This commit is contained in:
Mark McDowall 2012-10-23 08:18:28 -07:00
parent d43e709ddd
commit 44072a4d6b

View file

@ -34,7 +34,13 @@ public TimeSpan DefaultInterval
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)