Add support for commercial marker triggers

This commit is contained in:
JonnyWong16 2023-02-17 10:01:57 -08:00
commit 6b0b3a476f
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 36 additions and 8 deletions

View file

@ -348,6 +348,14 @@ def available_notification_actions(agent_id=None):
'icon': 'fa-bookmark',
'media_types': ('episode',)
},
{'label': 'Commercial Marker',
'name': 'on_credits',
'description': 'Trigger a notification when a video stream reaches any commercial marker.',
'subject': 'Tautulli ({server_name})',
'body': '{user} ({player}) has reached a commercial marker for {title}.',
'icon': 'fa-bookmark',
'media_types': ('movie', 'episode')
},
{'label': 'Credits Marker',
'name': 'on_credits',
'description': 'Trigger a notification when a video stream reaches any credits marker.',