DeleteFiles with Delete Series is now respected

This commit is contained in:
Mark McDowall 2013-07-17 23:24:38 -07:00
parent 8d2fc4945b
commit deb4972cdc
1 changed files with 8 additions and 1 deletions

View File

@ -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);
}