1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-26 22:56:23 -04:00

New: Add series tags to Webhook and Notifiarr events

This commit is contained in:
Mark McDowall
2024-05-07 17:45:28 -07:00
committed by Mark McDowall
parent f50a263f4f
commit cc0a284660
6 changed files with 57 additions and 22 deletions
@@ -1,3 +1,4 @@
using System.Collections.Generic;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Notifications.Webhook
@@ -13,12 +14,13 @@ namespace NzbDrone.Core.Notifications.Webhook
public string ImdbId { get; set; }
public SeriesTypes Type { get; set; }
public int Year { get; set; }
public List<string> Tags { get; set; }
public WebhookSeries()
{
}
public WebhookSeries(Series series)
public WebhookSeries(Series series, List<string> tags)
{
Id = series.Id;
Title = series.Title;
@@ -29,6 +31,7 @@ namespace NzbDrone.Core.Notifications.Webhook
ImdbId = series.ImdbId;
Type = series.SeriesType;
Year = series.Year;
Tags = tags;
}
}
}