|
|
|
@ -20,6 +20,7 @@ namespace NzbDrone.Core.Notifications
|
|
|
|
|
IHandle<MovieImportedEvent>,
|
|
|
|
|
IHandle<MoviesDeletedEvent>,
|
|
|
|
|
IHandle<MovieAddedEvent>,
|
|
|
|
|
IHandle<MoviesImportedEvent>,
|
|
|
|
|
IHandle<MovieFileDeletedEvent>,
|
|
|
|
|
IHandle<HealthCheckFailedEvent>,
|
|
|
|
|
IHandle<UpdateInstalledEvent>,
|
|
|
|
@ -174,6 +175,27 @@ namespace NzbDrone.Core.Notifications
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Handle(MoviesImportedEvent message)
|
|
|
|
|
{
|
|
|
|
|
foreach (var notification in _notificationFactory.OnMovieAddedEnabled())
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
foreach (var movie in message.Movies)
|
|
|
|
|
{
|
|
|
|
|
if (ShouldHandleMovie(notification.Definition, movie))
|
|
|
|
|
{
|
|
|
|
|
notification.OnMovieAdded(movie);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
_logger.Warn(ex, "Unable to send OnMovieAdded notification to: " + notification.Definition.Name);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Handle(MovieRenamedEvent message)
|
|
|
|
|
{
|
|
|
|
|
foreach (var notification in _notificationFactory.OnRenameEnabled())
|
|
|
|
|