Add detailed stream info to notification options

This commit is contained in:
JonnyWong16 2017-02-25 22:30:47 -08:00
commit 992f0baf93
5 changed files with 240 additions and 53 deletions

View file

@ -2767,7 +2767,7 @@ pre::-webkit-scrollbar-thumb {
}
.notification-params td:first-child {
padding-left: 10px;
width: 200px;
width: 250px;
}
.notification-params.time-options td:first-child {
padding-left: 10px;

View file

@ -1500,7 +1500,7 @@
</div>
</div>
<div id="notifier-config-modal" class="modal fade wide" tabindex="-1" role="dialog" aria-labelledby="notifier-config-modal"></div>
<div id="notify-text-sub-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="notify-text-sub-modal">
<div id="notify-text-sub-modal" class="modal fade wide" tabindex="-1" role="dialog" aria-labelledby="notify-text-sub-modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
@ -1596,80 +1596,207 @@
</tr>
<tr>
<td><strong>{ip_address}</strong></td>
<td>The IP address of the device being used for playback. <span class="small-muted">(PMS 0.9.14 and above)</span></td>
<td>The IP address of the device being used for playback.</td>
</tr>
<tr>
<td><strong>{stream_duration}</strong></td>
<td>The stream duration (in minutes) for the item.</td>
<td>The duration (in minutes) for the stream.</td>
</tr>
<tr>
<td><strong>{stream_time}</strong></td>
<td>The stream duration (in time format) for the item.</td>
<td>The duration (in time format) of the stream.</td>
</tr>
<tr>
<td><strong>{remaining_duration}</strong></td>
<td>The remaining duration (in minutes) for the item.</td>
<td>The remaining duration (in minutes) of the stream.</td>
</tr>
<tr>
<td><strong>{remaining_time}</strong></td>
<td>The remaining duration (in time format) for the item.</td>
<td>The remaining duration (in time format) of the stream.</td>
</tr>
<tr>
<td><strong>{progress_duration}</strong></td>
<td>The last reported offset (in minutes) for the item.</td>
<td>The last reported offset (in minutes) of the stream.</td>
</tr>
<tr>
<td><strong>{progress_time}</strong></td>
<td>The last reported offset (in time format) for the item.</td>
<td>The last reported offset (in time format) of the stream.</td>
</tr>
<tr>
<td><strong>{progress_percent}</strong></td>
<td>The last reported progress percent for the item.</td>
<td>The last reported progress percent of the stream.</td>
</tr>
<tr>
<td><strong>{transcode_decision}</strong></td>
<td>The stream transcode decisions for the media item.</td>
<td>The transcode decisions of the stream.</td>
</tr>
<tr>
<td><strong>{video_decision}</strong></td>
<td>The video transcode decisions for the media item.</td>
<td>The video transcode decisions of the stream.</td>
</tr>
<tr>
<td><strong>{audio_decision}</strong></td>
<td>The audio transcode decisions for the media item.</td>
<td>The audio transcode decisions of the stream.</td>
</tr>
<tr>
<td><strong>{subtitle_decision}</strong></td>
<td>The subtitle transcode decisions of the stream.</td>
</tr>
<tr>
<td><strong>{quality_profile}</strong></td>
<td>The Plex quality profile of the stream. <span class="small-muted">(e.g. 4 Mbps 720p)</span></td>
</tr>
<tr>
<td><strong>{optimized_version}</strong></td>
<td>If the stream is an optimized version. <span class="small-muted">(0 or 1)</span></td>
</tr>
<tr>
<td><strong>{stream_local}</strong></td>
<td>If the stream is local. <span class="small-muted">(0 or 1)</span></td>
</tr>
<tr>
<td><strong>{stream_location}</strong></td>
<td>The network location of the stream. <span class="small-muted">(lan or wan)</span></td>
</tr>
<tr>
<td><strong>{stream_bandwidth}</strong></td>
<td>
The required bandwidth (in kbps) of the stream.
<p class="small-muted">(<em>not</em> the used bandwidth)</p>
</td>
</tr>
<tr>
<td><strong>{stream_container}</strong></td>
<td>The media container of the stream.</td>
</tr>
<tr>
<td><strong>{stream_bitrate}</strong></td>
<td>The bitrate (in kbps) of the stream.</td>
</tr>
<tr>
<td><strong>{stream_aspect_ratio}</strong></td>
<td>The aspect ratio of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_codec}</strong></td>
<td>The video codec of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_bitrate}</strong></td>
<td>The video bitrate (in kbps) of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_framerate}</strong></td>
<td>The video framerate of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_resolution}</strong></td>
<td>The video resolution of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_height}</strong></td>
<td>The video height of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_width}</strong></td>
<td>The video width of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_language}</strong></td>
<td>The video language of the stream.</td>
</tr>
<tr>
<td><strong>{stream_video_language_code}</strong></td>
<td>The video language code of the stream.</td>
</tr>
<tr>
<td><strong>{stream_audio_bitrate}</strong></td>
<td>The audio bitrate of the stream.</td>
</tr>
<tr>
<td><strong>{stream_audio_bitrate_mode}</strong></td>
<td>The audio bitrage mode of the stream. <span class="small-muted">(cbr or vbr)</span></td>
</tr>
<tr>
<td><strong>{stream_audio_codec}</strong></td>
<td>The audio codec of the stream.</td>
</tr>
<tr>
<td><strong>{stream_audio_channels}</strong></td>
<td>The audio channels of the stream.</td>
</tr>
<tr>
<td><strong>{stream_audio_language}</strong></td>
<td>The audio language of the stream.</td>
</tr>
<tr>
<td><strong>{stream_audio_language_code}</strong></td>
<td>The audio language code of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_codec}</strong></td>
<td>The subtitle codec of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_container}</strong></td>
<td>The subtitle container of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_format}</strong></td>
<td>The subtitle format of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_language}</strong></td>
<td>The subtitle language of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_language_code}</strong></td>
<td>The subtitle language code of the stream.</td>
</tr>
<tr>
<td><strong>{stream_subtitle_location}</strong></td>
<td>The subtitle location of the stream.</td>
</tr>
<tr>
<td><strong>{transcode_container}</strong></td>
<td>The media container of the transcoded media.</td>
<td>The media container of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_video_codec}</strong></td>
<td>The video codec of the transcoded media.</td>
<td>The video codec of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_video_width}</strong></td>
<td>The video width of the transcoded media.</td>
<td>The video width of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_video_height}</strong></td>
<td>The video height of the transcoded media.</td>
<td>The video height of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_audio_codec}</strong></td>
<td>The audio codec of the transcoded media.</td>
<td>The audio codec of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_audio_channels}</strong></td>
<td>The audio channels of the transcoded media.</td>
<td>The audio channels of the transcoded stream.</td>
</tr>
<tr>
<td><strong>{transcode_hardware}</strong></td>
<td>If hardware transcoding is used. <span class="small-muted">(0 or 1)</span></td>
</tr>
<tr>
<td><strong>{session_key}</strong></td>
<td>The unique identifier for the stream session.</td>
<td>The unique identifier for the session.</td>
</tr>
<tr>
<td><strong>{transcode_key}</strong></td>
<td>The unique identifier for the transcode session.</td>
</tr>
<tr>
<td><strong>{session_id}</strong></td>
<td>The unique identifier for the stream.</td>
</tr>
<tr>
<td><strong>{user_id}</strong></td>
<td>The unique identifier for the user.</td>
@ -1684,19 +1811,23 @@
<thead>
<tr>
<th colspan="2">
Metadata Details
Source Metadata Details
</th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>{media_type}</strong></td>
<td>The type of media. <span class="small-muted">(movie, episode, track)</span></td>
<td>The type of media. <span class="small-muted">(movie, show, season, episode, artist, album, track)</span></td>
</tr>
<tr>
<td><strong>{container}</strong></td>
<td>The media container of the original media.</td>
</tr>
<tr>
<td><strong>{aspect_ratio}</strong></td>
<td>The aspect ratio of the original media.</td>
</tr>
<tr>
<td><strong>{video_codec}</strong></td>
<td>The video codec of the original media.</td>
@ -1706,24 +1837,20 @@
<td>The video bitrate of the original media.</td>
</tr>
<tr>
<td><strong>{video_width}</strong></td>
<td>The video width of the original media.</td>
</tr>
<tr>
<td><strong>{video_height}</strong></td>
<td>The video height of the original media.</td>
<td><strong>{video_framerate}</strong></td>
<td>The video framerate of the original media.</td>
</tr>
<tr>
<td><strong>{video_resolution}</strong></td>
<td>The video resolution of the original media.</td>
</tr>
<tr>
<td><strong>{video_framerate}</strong></td>
<td>The video framerate of the original media.</td>
<td><strong>{video_width}</strong></td>
<td>The video width of the original media.</td>
</tr>
<tr>
<td><strong>{aspect_ratio}</strong></td>
<td>The aspect ratio of the original media.</td>
<td><strong>{video_height}</strong></td>
<td>The video height of the original media.</td>
</tr>
<tr>
<td><strong>{audio_codec}</strong></td>