-
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathMqtt.handlebars
28 lines (28 loc) · 992 Bytes
/
Mqtt.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
{
"DeviceId": "{{DeviceId}}",
"DeviceName": "{{DeviceName}}",
"ClientName": "{{ClientName}}",
"ItemId": "{{ItemId}}",
"RunTime": "{{RunTime}}",
"PlaybackPosition": "{{PlaybackPosition}}",
{{#if_equals NotificationType 'PlaybackStart'}}
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}",
"thumbnail": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary",
"backdrop": "{{ServerUrl}}/Items/{{ItemId}}/Images/Backdrop",
"logo": "{{ServerUrl}}/Items/{{ItemId}}/Images/Logo",
"Name": "{{Name}}",
{{#if_equals ItemType 'Episode'}}
"SeriesName": "{{SeriesName}}",
"SeasonNumber": "{{SeasonNumber}}",
"EpisodeNumber": "{{EpisodeNumber}}"
{{else}}
"Year": {{Year}}
{{/if_equals}}
{{/if_equals}}
{{#if_equals NotificationType 'PlaybackStop'}}
"PlayedToCompletion": "{{PlayedToCompletion}}"
{{/if_equals}}
{{#if_equals NotificationType 'PlaybackProgress'}}
"IsPaused": "{{IsPaused}}"
{{/if_equals}}
}