Fixed: Error sending Manual Interaction Required notification

(cherry picked from commit a12cdb34bc0ab78937e3c3677012bf030923aebf)
pull/9819/head
Mark McDowall 9 months ago committed by Bogdan
parent 41ff9352b9
commit 2caf3c6725

@ -254,15 +254,33 @@ namespace NzbDrone.Core.Notifications
public void Handle(ManualInteractionRequiredEvent message) public void Handle(ManualInteractionRequiredEvent message)
{ {
var movie = message.RemoteMovie.Movie;
var mess = "";
if (movie != null)
{
mess = GetMessage(movie, message.RemoteMovie.ParsedMovieInfo.Quality);
}
if (mess.IsNullOrWhiteSpace() && message.TrackedDownload.DownloadItem != null)
{
mess = message.TrackedDownload.DownloadItem.Title;
}
if (mess.IsNullOrWhiteSpace())
{
return;
}
var manualInteractionMessage = new ManualInteractionRequiredMessage var manualInteractionMessage = new ManualInteractionRequiredMessage
{ {
Message = GetMessage(message.RemoteMovie.Movie, message.RemoteMovie.ParsedMovieInfo.Quality), Message = mess,
Movie = message.RemoteMovie.Movie, Movie = movie,
Quality = message.RemoteMovie.ParsedMovieInfo.Quality, Quality = message.RemoteMovie.ParsedMovieInfo.Quality,
RemoteMovie = message.RemoteMovie, RemoteMovie = message.RemoteMovie,
TrackedDownload = message.TrackedDownload, TrackedDownload = message.TrackedDownload,
DownloadClientInfo = message.TrackedDownload.DownloadItem.DownloadClientInfo, DownloadClientInfo = message.TrackedDownload.DownloadItem?.DownloadClientInfo,
DownloadId = message.TrackedDownload.DownloadItem.DownloadId, DownloadId = message.TrackedDownload.DownloadItem?.DownloadId,
Release = message.Release Release = message.Release
}; };

Loading…
Cancel
Save