DeleteFiles with Delete Series is now respected

pull/3113/head
Mark McDowall 11 years ago
parent 8d2fc4945b
commit deb4972cdc

@ -107,7 +107,14 @@ namespace NzbDrone.Api.Series
private void DeleteSeries(int id)
{
var deleteFiles = Convert.ToBoolean(Request.Headers["deleteFiles"].FirstOrDefault());
var deleteFiles = false;
var deleteFilesQuery = Request.Query.deleteFiles;
if (deleteFilesQuery.HasValue)
{
deleteFiles = Convert.ToBoolean(deleteFilesQuery.Value);
}
_seriesService.DeleteSeries(id, deleteFiles);
}

Loading…
Cancel
Save