mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 03:38:26 -07:00
New: Add DownloadClient and DownloadId to Webhook notifications
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
dca8495f38
commit
807460771e
3 changed files with 10 additions and 2 deletions
|
@ -34,7 +34,9 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
QualityVersion = quality.Revision.Version,
|
QualityVersion = quality.Revision.Version,
|
||||||
ReleaseGroup = remoteAlbum.ParsedAlbumInfo.ReleaseGroup
|
ReleaseGroup = remoteAlbum.ParsedAlbumInfo.ReleaseGroup
|
||||||
}),
|
}),
|
||||||
Release = new WebhookRelease(quality, remoteAlbum)
|
Release = new WebhookRelease(quality, remoteAlbum),
|
||||||
|
DownloadClient = message.DownloadClient,
|
||||||
|
DownloadId = message.DownloadId
|
||||||
};
|
};
|
||||||
|
|
||||||
_proxy.SendWebhook(payload, Settings);
|
_proxy.SendWebhook(payload, Settings);
|
||||||
|
@ -56,7 +58,9 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
ReleaseGroup = x.ReleaseGroup
|
ReleaseGroup = x.ReleaseGroup
|
||||||
})).ToList(),
|
})).ToList(),
|
||||||
TrackFiles = trackFiles.ConvertAll(x => new WebhookTrackFile(x)),
|
TrackFiles = trackFiles.ConvertAll(x => new WebhookTrackFile(x)),
|
||||||
IsUpgrade = message.OldFiles.Any()
|
IsUpgrade = message.OldFiles.Any(),
|
||||||
|
DownloadClient = message.DownloadClient,
|
||||||
|
DownloadId = message.DownloadId
|
||||||
};
|
};
|
||||||
|
|
||||||
_proxy.SendWebhook(payload, Settings);
|
_proxy.SendWebhook(payload, Settings);
|
||||||
|
|
|
@ -6,5 +6,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
{
|
{
|
||||||
public List<WebhookAlbum> Albums { get; set; }
|
public List<WebhookAlbum> Albums { get; set; }
|
||||||
public WebhookRelease Release { get; set; }
|
public WebhookRelease Release { get; set; }
|
||||||
|
public string DownloadClient { get; set; }
|
||||||
|
public string DownloadId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,7 @@ namespace NzbDrone.Core.Notifications.Webhook
|
||||||
public List<WebhookTrack> Tracks { get; set; }
|
public List<WebhookTrack> Tracks { get; set; }
|
||||||
public List<WebhookTrackFile> TrackFiles { get; set; }
|
public List<WebhookTrackFile> TrackFiles { get; set; }
|
||||||
public bool IsUpgrade { get; set; }
|
public bool IsUpgrade { get; set; }
|
||||||
|
public string DownloadClient { get; set; }
|
||||||
|
public string DownloadId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue