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:
parent
186cb02748
commit
415bbf5b3b
@ -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;
|
||||
|
@ -0,0 +1,8 @@
|
||||
using NzbDrone.Common.Messaging;
|
||||
|
||||
namespace NzbDrone.Core.Tv.Events
|
||||
{
|
||||
public class SeriesRefreshCompleteEvent : IEvent
|
||||
{
|
||||
}
|
||||
}
|
@ -249,6 +249,8 @@ public void Execute(RefreshSeriesCommand message)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_eventAggregator.PublishEvent(new SeriesRefreshCompleteEvent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user