-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathPlaybackStop.handlebars
48 lines (39 loc) · 1.65 KB
/
PlaybackStop.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
{
"content": "{{MentionType}}",
"avatar_url": "{{ServerUrl}}/Users/{{UserId}}/Images/Primary",
"username": "{{NotificationUsername}}",
"embeds": [
{
"author": {
{{#if_equals ItemType 'Episode'}}
{{#if_equals PlayedToCompletion true}}
"name": "Playback Completed • {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} ~ {{{Name}}}",
{{else}}
"name": "Playback Stopped • {{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} ~ {{{Name}}}",
{{/if_equals}}
{{else}}
{{#if_equals PlayedToCompletion true}}
"name": "Playback Completed • {{{Name}}} ({{Year}})",
{{else}}
"name": "Playback Stopped • {{{Name}}} ({{Year}})",
{{/if_equals}}
{{/if_equals}}
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}"
},
"thumbnail":{
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary"
},
"description": "> {{{Overview}}}\n\n``[{{PlaybackPosition}}/{{RunTime}}]``",
{{#if_equals PlayedToCompletion true}}
"color": "3381759",
{{else}}
"color": "15737923",
{{/if_equals}}
"footer": {
"text": "{{{ServerName}}}",
"icon_url": "{{AvatarUrl}}"
},
"timestamp": "{{Timestamp}}"
}
]
}