Update Notification Text Modifiers modal with Time Formats

This commit is contained in:
JonnyWong16 2023-11-13 11:28:53 -08:00
parent 5abdfd7377
commit 98c363f559
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
2 changed files with 16 additions and 1 deletions

View file

@ -1923,6 +1923,21 @@
<p><strong style="color: #fff;">Example:</strong></p>
<pre>{media_type} --> movie
{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>
<h4>List Slicing</h4>

View file

@ -636,7 +636,7 @@ NOTIFICATION_PARAMETERS = [
'parameters': [
{'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 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 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.'},