From da35942b5966cd5fed5e6fa5761475aac63d1893 Mon Sep 17 00:00:00 2001 From: desileR <39315068+zeroquinc@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:47:06 +0200 Subject: [PATCH 1/3] Support for Studios, Tags, CommunityRating, IsHD --- .../Helpers/DataObjectHelpers.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index 57c3e5b..a6c8d35 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -56,6 +56,7 @@ public static Dictionary AddBaseItemData(this Dictionary AddBaseItemData(this Dictionary Date: Wed, 26 Feb 2025 18:52:06 +0100 Subject: [PATCH 2/3] Fix handling of Studios and Tags arrays --- Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index a6c8d35..861ef16 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -67,14 +67,14 @@ public static Dictionary AddBaseItemData(this Dictionary 0) { - dataObject["Studios"] = item.Studios; + dataObject["Studios"] = string.Join(", ", item.Studios); } - if (item.Tags is not null) + if (item.Tags is not null && item.Tags.Length > 0) { - dataObject["Tags"] = item.Tags; + dataObject["Tags"] = string.Join(", ", item.Tags); } if (item.CommunityRating is not null) From 167b86ffe3276f57aef67e4a7e5974ee0098cb50 Mon Sep 17 00:00:00 2001 From: Zeroquinc Date: Wed, 26 Feb 2025 19:26:29 +0100 Subject: [PATCH 3/3] Format CommunityRating to one decimal place --- Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index 861ef16..5a72f56 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -79,7 +79,7 @@ public static Dictionary AddBaseItemData(this Dictionary