jellyfin-plugin-webhook/Jellyfin.Plugin.Webhook/Templates/Gotify/ItemAdded.handlebars

44 lines
2.0 KiB
Handlebars

{
"extras":{
"client::display": {
"contentType": "text/markdown"
}
},
"message": "![]({{ServerUrl}}/Items/{{ItemId}}/Images/Primary)\nExternal Links:\n
{{~#if_exist Provider_imdb~}}
[IMDb](https://www.imdb.com/title/{{Provider_imdb}}/)\n
{{~/if_exist~}}
{{~#if_exist Provider_tmdb~}}
{{~#if_equals ItemType 'Movie'~}}
[TMDb](https://www.themoviedb.org/movie/{{Provider_tmdb}})\n
{{~else~}}
[TMDb](https://www.themoviedb.org/tv/{{Provider_tmdb}})\n
{{~/if_equals~}}
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainzartist~}}
[MusicBrainz](https://musicbrainz.org/artist/{{Provider_musicbrainzartist}})\n
{{~/if_exist~}}
{{#if_exist Provider_audiodbartist}}
[AudioDb](https://theaudiodb.com/artist/{{Provider_audiodbartist}})\n
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainztrack~}}
[MusicBrainz Track](https://musicbrainz.org/track/{{Provider_musicbrainztrack}})\n
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainzalbum~}}
[MusicBrainz Album](https://musicbrainz.org/release/{{Provider_musicbrainzalbum}})\n
{{~/if_exist~}}
{{#if_exist Provider_theaudiodbalbum}}
[TADb Album](https://theaudiodb.com/album/{{Provider_theaudiodbalbum}})\n
{{~/if_exist~}}
[Jellyfin]({{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}})",
"priority": {{Priority}},
{{#if_equals ItemType 'Season'}}
"title": " ✅{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}} ✅"
{{else}}
{{#if_equals ItemType 'Episode'}}
"title": " ✅ {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}} ✅"
{{else}}
"title": " ✅ {{{Name}}} ({{Year}}) has been added to {{{ServerName}}} ✅"
{{/if_equals}}
{{/if_equals}}
}