Skip to content

Commit

Permalink
Support for SeriesId (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroquinc authored Sep 27, 2023
1 parent 4543c0c commit 92ad2a0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public static Dictionary<string, object> AddBaseItemData(this Dictionary<string,
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;
Expand All @@ -98,6 +103,11 @@ public static Dictionary<string, object> AddBaseItemData(this Dictionary<string,
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;
Expand Down

0 comments on commit 92ad2a0

Please sign in to comment.