mirror of https://github.com/lidarr/Lidarr
DeleteFiles with Delete Series is now respected
This commit is contained in:
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…
Reference in New Issue