-
Notifications
You must be signed in to change notification settings - Fork 4
/
ItemAdded.handlebars
90 lines (71 loc) · 3.22 KB
/
ItemAdded.handlebars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"content": "{{MentionType}}",
"avatar_url": "{{AvatarUrl}}",
"username": "{{{BotUsername}}}",
"embeds": [
{
"author": {
{{#if_equals ItemType 'Season'}}
"name": "Season Added • {{{SeriesName}}} {{{Name}}}",
{{/if_equals}}
{{#if_equals ItemType 'Episode'}}
"name": "Episode Added • {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} ~ {{{Name}}}",
{{/if_equals}}
{{#if_equals ItemType 'Movie'}}
"name": "Movie Added • {{{Name}}}",
{{/if_equals}}
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}"
},
"thumbnail":{
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
},
"description": "
{{~#if_exist Overview~}}
> {{{Overview}}}\n\n
{{~/if_exist~}}
{{~#if_exist ServerUrl~}}
[**Watch Now** ]({{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}})
{{~/if_exist~}}
{{~#if_exist Provider_imdb~}}
• [**IMDb** ](https://www.imdb.com/title/{{Provider_imdb}}/)
{{~/if_exist~}}
{{~#if_exist Provider_tmdb~}}
{{~#if_equals ItemType 'Movie'~}}
• [**TMDb** ](https://www.themoviedb.org/movie/{{Provider_tmdb}})
{{~else~}}
• [**TMDb** ](https://www.themoviedb.org/tv/{{Provider_tmdb}})
{{~/if_equals~}}
{{~/if_exist~}}
{{~#if_exist Provider_tvmaze~}}
{{~#if_equals ItemType 'Episode'~}}
• [**TVMaze** ](https://www.tvmaze.com/episodes/{{Provider_tvmaze}})
{{~/if_equals~}}
{{~#if_equals ItemType 'Series'~}}
• [**TVMaze** ](https://www.tvmaze.com/shows/{{Provider_tvmaze}})
{{~/if_equals~}}
{{~/if_exist~}}
{{~#if_exist Provider_audiodbartist~}}
• [**AudioDb** ](https://theaudiodb.com/artist/{{Provider_audiodbartist}})
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainzartist~}}
• [**MusicBrainz** ](https://musicbrainz.org/artist/{{Provider_musicbrainzartist}})
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainztrack~}}
• [**MusicBrainz Track** ](https://musicbrainz.org/track/{{Provider_musicbrainztrack}})
{{~/if_exist~}}
{{~#if_exist Provider_musicbrainzalbum~}}
• [**MusicBrainz Album** ](https://musicbrainz.org/release/{{Provider_musicbrainzalbum}})
{{~/if_exist~}}
{{~#if_exist Provider_theaudiodbalbum~}}
• [**TADb Album** ](https://theaudiodb.com/album/{{Provider_theaudiodbalbum}})
{{~/if_exist~}}
",
"color": "3381759",
"footer": {
"text": "{{{ServerName}}} ",
"icon_url": "{{AvatarUrl}}"
},
"timestamp": "{{Timestamp}}"
}
]
}