mirror of
https://github.com/seerr-team/seerr.git
synced 2026-10-12 02:22:17 +00:00
feat(webhook): add imdbid to webhook notification (#2658)
Signed-off-by: Ludovic Ortega <[email protected]>
This commit is contained in:
@@ -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`) |
|
||||
|
||||
@@ -25,6 +25,7 @@ const KeyMap: Record<string, string | KeyMapFunction> = {
|
||||
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',
|
||||
|
||||
@@ -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}}',
|
||||
|
||||
Reference in New Issue
Block a user