mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 23:45:46 +02:00
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:
@@ -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;
|
||||
|
@@ -0,0 +1,8 @@
|
||||
using NzbDrone.Common.Messaging;
|
||||
|
||||
namespace NzbDrone.Core.Movies.Events
|
||||
{
|
||||
public class MovieRefreshCompleteEvent : IEvent
|
||||
{
|
||||
}
|
||||
}
|
@@ -239,6 +239,8 @@ namespace NzbDrone.Core.Movies
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_eventAggregator.PublishEvent(new MovieRefreshCompleteEvent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user