1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

New: Add release info to webhook/custom script import events

Closes #8293
This commit is contained in:
Mark McDowall
2023-04-02 13:26:49 -07:00
committed by Qstick
parent b5bf5eae26
commit 9ec1235b62
11 changed files with 114 additions and 37 deletions
@@ -0,0 +1,27 @@
using NzbDrone.Core.Parser.Model;
namespace NzbDrone.Core.Notifications.Webhook
{
public class WebhookGrabbedRelease
{
public WebhookGrabbedRelease()
{
}
public WebhookGrabbedRelease(GrabbedReleaseInfo release)
{
if (release == null)
{
return;
}
ReleaseTitle = release.Title;
Indexer = release.Indexer;
Size = release.Size;
}
public string ReleaseTitle { get; set; }
public string Indexer { get; set; }
public long Size { get; set; }
}
}