From c25693d6ff8a097eb835c9d7f23689dc0091e727 Mon Sep 17 00:00:00 2001 From: desileR <39315068+zeroquinc@users.noreply.github.com> Date: Tue, 26 Sep 2023 05:04:01 +0200 Subject: [PATCH 1/3] Support for AirTime, PremiereDate and Genres Adds `AirTime`, `PremiereDate` and `Genres`. --- .../Helpers/DataObjectHelpers.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index 241d63b..4ddffd6 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -66,6 +66,11 @@ public static Dictionary AddBaseItemData(this Dictionary 0) + { + dataObject["Genres"] = string.Join(", ", item.Genres); + } + switch (item) { case Season season: @@ -124,6 +129,18 @@ public static Dictionary AddBaseItemData(this Dictionary Date: Tue, 26 Sep 2023 06:37:29 +0200 Subject: [PATCH 2/3] Support for AirTime, PremiereDate and Genres --- Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index 4ddffd6..8f1aeea 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -131,9 +131,7 @@ public static Dictionary AddBaseItemData(this Dictionary Date: Wed, 27 Sep 2023 04:35:59 +0200 Subject: [PATCH 3/3] Support for more variables Support for `AirTime`, `EpisodePremiereDate`, `SeriesPremiereDate` and `Genres` --- .../Helpers/DataObjectHelpers.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs index 8f1aeea..580b81b 100644 --- a/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs +++ b/Jellyfin.Plugin.Webhook/Helpers/DataObjectHelpers.cs @@ -103,6 +103,11 @@ public static Dictionary AddBaseItemData(this Dictionary AddBaseItemData(this Dictionary AddUserItemData(this DictionaryEscaped string. private static string Escape(this string? input) => input?.Replace("\"", "\\\"", StringComparison.Ordinal) ?? string.Empty; -} +} \ No newline at end of file