mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-24 06:27:08 -04:00
New: Add additional fields to Webhook Manual Interaction Required events
(cherry picked from commit 1ec1ce58e9f095222e7fe4a8c74a0720fed71558) Closes #9874
This commit is contained in:
parent
83bd4d0686
commit
4e47695f89
3 changed files with 22 additions and 0 deletions
|
@ -212,6 +212,8 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
DownloadClient = message.DownloadClientInfo?.Name,
|
||||
DownloadClientType = message.DownloadClientInfo?.Type,
|
||||
DownloadId = message.DownloadId,
|
||||
DownloadStatus = message.TrackedDownload.Status.ToString(),
|
||||
DownloadStatusMessages = message.TrackedDownload.StatusMessages.Select(x => new WebhookDownloadStatusMessage(x)).ToList(),
|
||||
CustomFormatInfo = new WebhookCustomFormatInfo(remoteMovie.CustomFormats, remoteMovie.CustomFormatScore),
|
||||
Release = new WebhookGrabbedRelease(message.Release)
|
||||
};
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NzbDrone.Core.Download.TrackedDownloads;
|
||||
|
||||
namespace NzbDrone.Core.Notifications.Webhook
|
||||
{
|
||||
public class WebhookDownloadStatusMessage
|
||||
{
|
||||
public string Title { get; set; }
|
||||
public List<string> Messages { get; set; }
|
||||
|
||||
public WebhookDownloadStatusMessage(TrackedDownloadStatusMessage statusMessage)
|
||||
{
|
||||
Title = statusMessage.Title;
|
||||
Messages = statusMessage.Messages.ToList();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,6 +7,8 @@ namespace NzbDrone.Core.Notifications.Webhook
|
|||
public string DownloadClient { get; set; }
|
||||
public string DownloadClientType { get; set; }
|
||||
public string DownloadId { get; set; }
|
||||
public string DownloadStatus { get; set; }
|
||||
public List<WebhookDownloadStatusMessage> DownloadStatusMessages { get; set; }
|
||||
public WebhookCustomFormatInfo CustomFormatInfo { get; set; }
|
||||
public WebhookGrabbedRelease Release { get; set; }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue