1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Update deleted series health after refreshing series

This commit is contained in:
Mark McDowall 2019-12-04 09:06:59 -08:00
parent 186cb02748
commit 415bbf5b3b
3 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,4 @@
using System.Linq;
using System.Text;
using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Tv;
@ -9,6 +8,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
{
[CheckOn(typeof(SeriesUpdatedEvent))]
[CheckOn(typeof(SeriesDeletedEvent), CheckOnCondition.FailedOnly)]
[CheckOn(typeof(SeriesRefreshCompleteEvent))]
public class RemovedSeriesCheck : HealthCheckBase, ICheckOnCondition<SeriesUpdatedEvent>, ICheckOnCondition<SeriesDeletedEvent>
{
private readonly ISeriesService _seriesService;

View File

@ -0,0 +1,8 @@
using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.Tv.Events
{
public class SeriesRefreshCompleteEvent : IEvent
{
}
}

View File

@ -249,6 +249,8 @@ public void Execute(RefreshSeriesCommand message)
}
}
}
_eventAggregator.PublishEvent(new SeriesRefreshCompleteEvent());
}
}
}