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

New: Add Languages to Webhook Notifications

Closes #7421
This commit is contained in:
Stevie Robinson
2024-12-02 01:16:36 +01:00
committed by GitHub
parent 776143cc81
commit e039dc45e2
3 changed files with 10 additions and 0 deletions
@@ -1,5 +1,6 @@
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Languages;
using NzbDrone.Core.Tv;
namespace NzbDrone.Core.Notifications.Webhook
@@ -19,6 +20,7 @@ namespace NzbDrone.Core.Notifications.Webhook
public List<string> Genres { get; set; }
public List<WebhookImage> Images { get; set; }
public List<string> Tags { get; set; }
public Language OriginalLanguage { get; set; }
public WebhookSeries()
{
@@ -39,6 +41,7 @@ namespace NzbDrone.Core.Notifications.Webhook
Genres = series.Genres;
Images = series.Images.Select(i => new WebhookImage(i)).ToList();
Tags = tags;
OriginalLanguage = series.OriginalLanguage;
}
}
}