Fixed: Update deleted movie health after refreshing movies

Fixes #4694

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
Qstick
2020-07-31 23:39:33 -04:00
parent e6c92c05ec
commit 62d2c8e1f3
3 changed files with 11 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
{
[CheckOn(typeof(MovieUpdatedEvent))]
[CheckOn(typeof(MoviesDeletedEvent), CheckOnCondition.FailedOnly)]
[CheckOn(typeof(MovieRefreshCompleteEvent))]
public class RemovedMovieCheck : HealthCheckBase, ICheckOnCondition<MovieUpdatedEvent>, ICheckOnCondition<MoviesDeletedEvent>
{
private readonly IMovieService _movieService;

View File

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

View File

@@ -239,6 +239,8 @@ namespace NzbDrone.Core.Movies
}
}
}
_eventAggregator.PublishEvent(new MovieRefreshCompleteEvent());
}
}
}