mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Fixed: don't try to delete series folder if it doesn't exist
This commit is contained in:
parent
ff99c383da
commit
f657afc424
@ -169,10 +169,13 @@ public void Cleanup()
|
|||||||
public void HandleAsync(SeriesDeletedEvent message)
|
public void HandleAsync(SeriesDeletedEvent message)
|
||||||
{
|
{
|
||||||
if (message.DeleteFiles)
|
if (message.DeleteFiles)
|
||||||
|
{
|
||||||
|
if (_diskProvider.FolderExists(message.Series.Path))
|
||||||
{
|
{
|
||||||
DeleteFolder(message.Series.Path);
|
DeleteFolder(message.Series.Path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void Execute(CleanUpRecycleBinCommand message)
|
public void Execute(CleanUpRecycleBinCommand message)
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
using NzbDrone.Common.Messaging;
|
using System;
|
||||||
|
using NzbDrone.Common.Messaging;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Tv.Events
|
namespace NzbDrone.Core.Tv.Events
|
||||||
{
|
{
|
||||||
public class SeriesDeletedEvent : IEvent
|
public class SeriesDeletedEvent : IEvent
|
||||||
{
|
{
|
||||||
public Series Series { get; private set; }
|
public Series Series { get; private set; }
|
||||||
public bool DeleteFiles { get; private set; }
|
public Boolean DeleteFiles { get; private set; }
|
||||||
|
|
||||||
public SeriesDeletedEvent(Series series, bool deleteFiles)
|
public SeriesDeletedEvent(Series series, Boolean deleteFiles)
|
||||||
{
|
{
|
||||||
Series = series;
|
Series = series;
|
||||||
DeleteFiles = deleteFiles;
|
DeleteFiles = deleteFiles;
|
||||||
|
Loading…
Reference in New Issue
Block a user