mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Add duration_time notification parameter
This commit is contained in:
parent
ae17d2dde0
commit
ab5836a65b
2 changed files with 2 additions and 0 deletions
|
@ -547,6 +547,7 @@ NOTIFICATION_PARAMETERS = [
|
||||||
{'name': 'Duration', 'type': 'int', 'value': 'duration', 'description': 'The duration (in minutes) for the item.'},
|
{'name': 'Duration', 'type': 'int', 'value': 'duration', 'description': 'The duration (in minutes) for the item.'},
|
||||||
{'name': 'Duration (sec)', 'type': 'int', 'value': 'duration_sec', 'description': 'The duration (in seconds) for the item.'},
|
{'name': 'Duration (sec)', 'type': 'int', 'value': 'duration_sec', 'description': 'The duration (in seconds) for the item.'},
|
||||||
{'name': 'Duration (ms)', 'type': 'int', 'value': 'duration_ms', 'description': 'The duration (in milliseconds) for the item.'},
|
{'name': 'Duration (ms)', 'type': 'int', 'value': 'duration_ms', 'description': 'The duration (in milliseconds) for the item.'},
|
||||||
|
{'name': 'Duration Time', 'type': 'str', 'value': 'duration_time', 'description': 'The duration (in time format) for the item.'},
|
||||||
{'name': 'Poster URL', 'type': 'str', 'value': 'poster_url', 'description': 'A URL for the movie, TV show, or album poster.'},
|
{'name': 'Poster URL', 'type': 'str', 'value': 'poster_url', 'description': 'A URL for the movie, TV show, or album poster.'},
|
||||||
{'name': 'Plex ID', 'type': 'str', 'value': 'plex_id', 'description': 'The Plex ID for the item.', 'example': 'e.g. 5d7769a9594b2b001e6a6b7e'},
|
{'name': 'Plex ID', 'type': 'str', 'value': 'plex_id', 'description': 'The Plex ID for the item.', 'example': 'e.g. 5d7769a9594b2b001e6a6b7e'},
|
||||||
{'name': 'Plex URL', 'type': 'str', 'value': 'plex_url', 'description': 'The Plex URL to your server for the item.'},
|
{'name': 'Plex URL', 'type': 'str', 'value': 'plex_url', 'description': 'The Plex URL to your server for the item.'},
|
||||||
|
|
|
@ -1155,6 +1155,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
||||||
'duration': duration,
|
'duration': duration,
|
||||||
'duration_sec': duration_sec,
|
'duration_sec': duration_sec,
|
||||||
'duration_ms': notify_params['duration'],
|
'duration_ms': notify_params['duration'],
|
||||||
|
'druation_time': arrow.get(duration_sec).format(duration_format),
|
||||||
'poster_title': notify_params['poster_title'],
|
'poster_title': notify_params['poster_title'],
|
||||||
'poster_url': notify_params['poster_url'],
|
'poster_url': notify_params['poster_url'],
|
||||||
'plex_id': notify_params['plex_id'],
|
'plex_id': notify_params['plex_id'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue