From 2432e8dd7bedf0749401308c0c48a215b30701fb Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Wed, 8 Apr 2026 22:41:42 +0200 Subject: [PATCH] feat(webhook): add imdbid to webhook notification (#2658) Signed-off-by: Ludovic Ortega --- docs/using-seerr/notifications/webhook.md | 1 + server/lib/notifications/agents/webhook.ts | 1 + .../Settings/Notifications/NotificationsWebhook/index.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/using-seerr/notifications/webhook.md b/docs/using-seerr/notifications/webhook.md index 170537eca..f82afadc7 100644 --- a/docs/using-seerr/notifications/webhook.md +++ b/docs/using-seerr/notifications/webhook.md @@ -98,6 +98,7 @@ These following special variables are only included in media-related notificatio | Variable | Value | | ------------------------------| -------------------------------------------------------------------------------------------------------------- | | `{{media_type}}` | The media type (`movie` or `tv`) | +| `{{media_imdbid}}` | The media's IMDb ID | | `{{media_tmdbid}}` | The media's TMDB ID | | `{{media_tvdbid}}` | The media's TheTVDB ID | | `{{media_status}}` | The media's availability status (`UNKNOWN`, `PENDING`, `PROCESSING`, `PARTIALLY_AVAILABLE`, or `AVAILABLE`) | diff --git a/server/lib/notifications/agents/webhook.ts b/server/lib/notifications/agents/webhook.ts index 14ed5bb00..40bf0bf58 100644 --- a/server/lib/notifications/agents/webhook.ts +++ b/server/lib/notifications/agents/webhook.ts @@ -25,6 +25,7 @@ const KeyMap: Record = { notifyuser_avatar: 'notifyUser.avatar', notifyuser_settings_discordId: 'notifyUser.settings.discordId', notifyuser_settings_telegramChatId: 'notifyUser.settings.telegramChatId', + media_imdbid: 'media.imdbId', media_tmdbid: 'media.tmdbId', media_tvdbid: 'media.tvdbId', media_type: 'media.mediaType', diff --git a/src/components/Settings/Notifications/NotificationsWebhook/index.tsx b/src/components/Settings/Notifications/NotificationsWebhook/index.tsx index 9ede46541..0298e6342 100644 --- a/src/components/Settings/Notifications/NotificationsWebhook/index.tsx +++ b/src/components/Settings/Notifications/NotificationsWebhook/index.tsx @@ -37,6 +37,7 @@ const defaultPayload = { image: '{{image}}', '{{media}}': { media_type: '{{media_type}}', + imdbId: '{{media_imdbid}}', tmdbId: '{{media_tmdbid}}', tvdbId: '{{media_tvdbid}}', jellyfinMediaId: '{{media_jellyfinMediaId}}',