mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-24 06:55:26 -07:00
Merge branch 'nightly' into master
This commit is contained in:
commit
486df04747
3 changed files with 22 additions and 7 deletions
|
@ -1923,6 +1923,21 @@
|
||||||
<p><strong style="color: #fff;">Example:</strong></p>
|
<p><strong style="color: #fff;">Example:</strong></p>
|
||||||
<pre>{media_type} --> movie
|
<pre>{media_type} --> movie
|
||||||
{media_type!c} --> Movie</pre>
|
{media_type!c} --> Movie</pre>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h4>Time Formats</h4>
|
||||||
|
</div>
|
||||||
|
<div style="padding-bottom: 10px;">
|
||||||
|
<p class="help-block">
|
||||||
|
Notification parameters which are "in date format" or "in time format" can be formatted using the
|
||||||
|
<a href="javascript:void(0)" data-target="#dateTimeOptionsModal" data-toggle="modal">Date & Time Format Options</a>
|
||||||
|
by adding a <span class="inline-pre">:format</span> specifier.
|
||||||
|
If no format is specified, the default Date Format and Time Format under Settings > General will be used.
|
||||||
|
</p>
|
||||||
|
<p><strong style="color: #fff;">Example:</strong></p>
|
||||||
|
<pre>{started_datestamp:ddd, MMMM DD, YYYY} --> Mon, December 25, 2023
|
||||||
|
{stopped_timestamp:h:mm a} --> 9:56 pm
|
||||||
|
{duration_time:HH:mm:ss} --> 01:42:20</pre>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4>List Slicing</h4>
|
<h4>List Slicing</h4>
|
||||||
|
|
|
@ -636,7 +636,7 @@ NOTIFICATION_PARAMETERS = [
|
||||||
'parameters': [
|
'parameters': [
|
||||||
{'name': 'Update Version', 'type': 'str', 'value': 'update_version', 'description': 'The available update version for your Plex Server.'},
|
{'name': 'Update Version', 'type': 'str', 'value': 'update_version', 'description': 'The available update version for your Plex Server.'},
|
||||||
{'name': 'Update Url', 'type': 'str', 'value': 'update_url', 'description': 'The download URL for the available update.'},
|
{'name': 'Update Url', 'type': 'str', 'value': 'update_url', 'description': 'The download URL for the available update.'},
|
||||||
{'name': 'Update Release Date', 'type': 'str', 'value': 'update_release_date', 'description': 'The release date of the available update.'},
|
{'name': 'Update Release Date', 'type': 'str', 'value': 'update_release_date', 'description': 'The release date (in date format) of the available update.'},
|
||||||
{'name': 'Update Channel', 'type': 'str', 'value': 'update_channel', 'description': 'The update channel.', 'example': 'Public or Plex Pass'},
|
{'name': 'Update Channel', 'type': 'str', 'value': 'update_channel', 'description': 'The update channel.', 'example': 'Public or Plex Pass'},
|
||||||
{'name': 'Update Platform', 'type': 'str', 'value': 'update_platform', 'description': 'The platform of your Plex Server.'},
|
{'name': 'Update Platform', 'type': 'str', 'value': 'update_platform', 'description': 'The platform of your Plex Server.'},
|
||||||
{'name': 'Update Distro', 'type': 'str', 'value': 'update_distro', 'description': 'The distro of your Plex Server.'},
|
{'name': 'Update Distro', 'type': 'str', 'value': 'update_distro', 'description': 'The distro of your Plex Server.'},
|
||||||
|
|
|
@ -982,8 +982,8 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
|
||||||
'current_weekday': now_iso[2],
|
'current_weekday': now_iso[2],
|
||||||
'current_week': now_iso[1],
|
'current_week': now_iso[1],
|
||||||
'week_number': now_iso[1], # Keep for backwards compatibility
|
'week_number': now_iso[1], # Keep for backwards compatibility
|
||||||
'datestamp': now.format(date_format),
|
'datestamp': CustomArrow(now, date_format),
|
||||||
'timestamp': now.format(time_format),
|
'timestamp': CustomArrow(now, time_format),
|
||||||
'unixtime': helpers.timestamp(),
|
'unixtime': helpers.timestamp(),
|
||||||
'utctime': helpers.utc_now_iso(),
|
'utctime': helpers.utc_now_iso(),
|
||||||
# Stream parameters
|
# Stream parameters
|
||||||
|
@ -1156,7 +1156,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': CustomArrow(arrow.get(duration_sec), duration_format),
|
'duration_time': CustomArrow(arrow.get(duration_sec), 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'],
|
||||||
|
@ -1279,8 +1279,8 @@ def build_server_notify_params(notify_action=None, **kwargs):
|
||||||
'current_weekday': now_iso[2],
|
'current_weekday': now_iso[2],
|
||||||
'current_week': now_iso[1],
|
'current_week': now_iso[1],
|
||||||
'week_number': now_iso[1], # Keep for backwards compatibility
|
'week_number': now_iso[1], # Keep for backwards compatibility
|
||||||
'datestamp': now.format(date_format),
|
'datestamp': CustomArrow(now, date_format),
|
||||||
'timestamp': now.format(time_format),
|
'timestamp': CustomArrow(now, time_format),
|
||||||
'unixtime': helpers.timestamp(),
|
'unixtime': helpers.timestamp(),
|
||||||
'utctime': helpers.utc_now_iso(),
|
'utctime': helpers.utc_now_iso(),
|
||||||
# Plex remote access parameters
|
# Plex remote access parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue