Skip to content

Instantly share code, notes, and snippets.

@Aadityajoshi151
Created August 12, 2024 03:41
Show Gist options
  • Save Aadityajoshi151/d496e63d284a8988b0c97995d8845371 to your computer and use it in GitHub Desktop.
Save Aadityajoshi151/d496e63d284a8988b0c97995d8845371 to your computer and use it in GitHub Desktop.
This contains the notification template for Jellyfin's discord notifications
{
"content": "{{MentionType}}",
"avatar_url": "{{AvatarUrl}}",
"username": "{{#if_equals NotificationType 'PlaybackStart'}}{{NotificationUsername}} Playing{{else}}Content Added{{/if_equals}}",
"embeds": [
{
"author": {
{{#if_equals NotificationType 'ItemAdded'}}
{{#if_equals ItemType 'Episode'}}
"name": "New Episode Added 📺",
{{/if_equals}}
{{#if_equals ItemType 'Movie'}}
"name": "New Movie Added 🍿",
{{/if_equals}}
{{/if_equals}}
{{#if_equals NotificationType 'PlaybackStart'}}
{{#if_equals ItemType 'Episode'}}
"name": "Episode Playback Started 📺",
{{/if_equals}}
{{#if_equals ItemType 'Movie'}}
"name": "Movie Playback Started 🍿",
{{/if_equals}}
{{/if_equals}}
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}"
},
"thumbnail": {
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
},
"description": "{{#if_equals ItemType 'Episode'}}**{{SeriesName}} S{{SeasonNumber00}}E{{EpisodeNumber00}} - {{Name}}**\n**Device:** *{{DeviceName}}*\n**Client:** *{{ClientName}}*{{/if_equals}}{{#if_equals ItemType 'Movie'}}**{{Name}}**\n**Device:** *{{DeviceName}}*\n**Client:** *{{ClientName}}*{{/if_equals}}",
"color": "3381759",
"footer": {
"text": "{{{ServerName}}}",
"icon_url": "{{AvatarUrl}}"
},
"timestamp": "{{Timestamp}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment