mirror of
https://github.com/Radarr/Radarr
synced 2026-01-02 21:52:49 +01: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:
parent
e6c92c05ec
commit
62d2c8e1f3
3 changed files with 11 additions and 0 deletions
|
|
@ -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 @@ public void Execute(RefreshMovieCommand message)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
_eventAggregator.PublishEvent(new MovieRefreshCompleteEvent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue