Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public static Dictionary<string, object> AddBaseItemData(this Dictionary<string,
dataObject["Name"] = item.Name.Escape();
dataObject["Overview"] = item.Overview.Escape();
dataObject["Tagline"] = item.Tagline.Escape();
dataObject["IsHD"] = item.IsHD;
dataObject["ItemId"] = item.Id;
dataObject["ItemType"] = item.GetType().Name.Escape();
dataObject["RunTimeTicks"] = item.RunTimeTicks ?? 0;
Expand All @@ -66,6 +67,21 @@ public static Dictionary<string, object> AddBaseItemData(this Dictionary<string,
dataObject["Year"] = item.ProductionYear;
}

if (item.Studios is not null)
{
dataObject["Studios"] = item.Studios;
}

if (item.Tags is not null)
{
dataObject["Tags"] = item.Tags;
}

if (item.CommunityRating is not null)
{
dataObject["CommunityRating"] = item.CommunityRating;
}

if (item.PremiereDate is not null)
{
dataObject["PremiereDate"] = item.PremiereDate.Value.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);
Expand Down