mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
New: Add DownloadClient and DownloadId to Webhook notifications
This commit is contained in:
parent
98f9323b42
commit
5d9dfee3c0
@ -34,7 +34,9 @@ public override void OnGrab(GrabMessage message)
|
||||
QualityVersion = quality.Revision.Version,
|
||||
ReleaseGroup = remoteEpisode.ParsedEpisodeInfo.ReleaseGroup
|
||||
}),
|
||||
Release = new WebhookRelease(quality, remoteEpisode)
|
||||
Release = new WebhookRelease(quality, remoteEpisode),
|
||||
DownloadClient = message.DownloadClient,
|
||||
DownloadId = message.DownloadId
|
||||
};
|
||||
|
||||
_proxy.SendWebhook(payload, Settings);
|
||||
@ -57,7 +59,9 @@ public override void OnDownload(DownloadMessage message)
|
||||
SceneName = episodeFile.SceneName
|
||||
}),
|
||||
EpisodeFile = new WebhookEpisodeFile(episodeFile),
|
||||
IsUpgrade = message.OldFiles.Any()
|
||||
IsUpgrade = message.OldFiles.Any(),
|
||||
DownloadClient = message.DownloadClient,
|
||||
DownloadId = message.DownloadId
|
||||
};
|
||||
|
||||
_proxy.SendWebhook(payload, Settings);
|
||||
|
@ -6,5 +6,7 @@ public class WebhookGrabPayload : WebhookPayload
|
||||
{
|
||||
public List<WebhookEpisode> Episodes { get; set; }
|
||||
public WebhookRelease Release { get; set; }
|
||||
public string DownloadClient { get; set; }
|
||||
public string DownloadId { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -7,5 +7,7 @@ public class WebhookImportPayload : WebhookPayload
|
||||
public List<WebhookEpisode> Episodes { get; set; }
|
||||
public WebhookEpisodeFile EpisodeFile { get; set; }
|
||||
public bool IsUpgrade { get; set; }
|
||||
public string DownloadClient { get; set; }
|
||||
public string DownloadId { get; set; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user