Support for SeriesId (#192)

https://github.com/jellyfin/jellyfin-plugin-webhook/issues/172
This commit is contained in:
desileR 2023-09-27 21:42:53 +02:00 committed by GitHub
parent 4543c0ce55
commit 92ad2a0d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,11 @@ public static class DataObjectHelpers
dataObject["Year"] = season.Series.ProductionYear;
}
if (season.Series?.Id is not null)
{
dataObject["SeriesId"] = season.Series.Id;
}
if (season.IndexNumber is not null)
{
dataObject["SeasonNumber"] = season.IndexNumber;
@ -98,6 +103,11 @@ public static class DataObjectHelpers
dataObject["SeriesName"] = episode.Series.Name.Escape();
}
if (episode.Series?.Id is not null)
{
dataObject["SeriesId"] = episode.Series.Id;
}
if (!episode.SeasonId.Equals(default))
{
dataObject["SeasonId"] = episode.SeasonId;