mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-30 09:40:54 +00:00
18 lines
624 B
Handlebars
18 lines
624 B
Handlebars
{
|
|
{{#if_exist SlackUsername}}
|
|
"username": "{{BotUsername}}",
|
|
{{/if_exist}}
|
|
{{#if_exist SlackIconUrl}}
|
|
"icon_url": "{{SlackIconUrl}}",
|
|
{{/if_exist}}
|
|
{{#if_equals ItemType 'Season'}}
|
|
"text": "{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}}",
|
|
{{else}}
|
|
{{#if_equals ItemType 'Episode'}}
|
|
"text": "{{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}}",
|
|
{{else}}
|
|
"text": "{{{Name}}} ({{Year}}) has been added to {{{ServerName}}}",
|
|
{{/if_equals}}
|
|
{{/if_equals}}
|
|
}
|