62 lines
2.8 KiB
Handlebars
62 lines
2.8 KiB
Handlebars
{
|
|
"content": "{{MentionType}}",
|
|
"avatar_url": "{{AvatarUrl}}",
|
|
"username": "{{BotUsername}}",
|
|
"embeds": [
|
|
{
|
|
"color": "{{EmbedColor}}",
|
|
"footer": {
|
|
"text": "From {{{ServerName}}}",
|
|
"icon_url": "{{AvatarUrl}}"
|
|
},
|
|
{{#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}}
|
|
"thumbnail":{
|
|
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
|
|
},
|
|
"description": "External 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~}}
|
|
{{~#if_exist Provider_tvmaze~}}
|
|
{{~#if_equals ItemType 'Episode'~}}
|
|
[TVMaze](https://www.tvmaze.com/episodes/{{Provider_tvmaze}})\n
|
|
{{~/if_equals~}}
|
|
{{~#if_equals ItemType 'Series'~}}
|
|
[TVMaze](https://www.tvmaze.com/shows/{{Provider_tvmaze}})\n
|
|
{{~/if_equals~}}
|
|
{{~/if_exist~}}
|
|
[Jellyfin]({{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}})"
|
|
}
|
|
]
|
|
}
|