mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
126 lines
No EOL
7.1 KiB
HTML
126 lines
No EOL
7.1 KiB
HTML
<%doc>
|
|
USAGE DOCUMENTATION :: PLEASE LEAVE THIS AT THE TOP OF THIS FILE
|
|
|
|
For Mako templating syntax documentation please visit: http://docs.makotemplates.org/en/latest/
|
|
|
|
Filename: stream_data.html
|
|
Version: 0.1
|
|
Variable names: data [list]
|
|
|
|
data :: Usable parameters
|
|
|
|
== Global keys ==
|
|
media_type Returns the type of session. Either 'episode' or 'movie'.
|
|
title Returns the name of the episode or movie.
|
|
user Returns the name of the user.
|
|
transcode_video_dec Returns the video transcode decision. Either 'transcode', 'copy' or 'direct play'.
|
|
transcode_video_codec Returns the name of the video codec for any transcode session.
|
|
transcode_height Returns the value of the video height for any transcode session.
|
|
transcode_width Returns the value of the video width for any transcode session.
|
|
transcode_audio_dec Returns the audio transcode decision. Either 'transcode', 'copy' or 'direct play'.
|
|
transcode_audio_codec Returns the name of the audio codec for any transcode session.
|
|
transcode_audio_channels Returns the number of audio channels for any transcode session.
|
|
container Returns the type of container for the original media.
|
|
height Returns the value of the video height for the original media.
|
|
bitrate Returns the value of the video bitrate for the original media.
|
|
width Returns the value of the video width for the original media.
|
|
aspect_ratio Returns the value of the video aspect ratio for the original media.
|
|
video_framerate Returns the value of the video framerate for the original media.
|
|
video_codec Returns the name of the video codec for the original media.
|
|
audio_codec Returns the name of the audio codec for the original media.
|
|
audio_channels Returns the number of audio channels for the original media.
|
|
|
|
== Only if 'media_type' is 'episode' ==
|
|
grandparent_title Returns the name of the TV Show.
|
|
|
|
DOCUMENTATION :: END
|
|
</%doc>
|
|
|
|
% if data is not None:
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="info-modal-title">
|
|
% if data['media_type'] == 'episode':
|
|
Stream Info: <strong>${data['grandparent_title']} - ${data['title']} (${user})</strong>
|
|
% else:
|
|
Stream Info: <strong>${data['title']} (${user})</strong>
|
|
% endif
|
|
</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-4">
|
|
<h4><strong>Stream Details</strong></h4>
|
|
% if data['media_type'] != 'track':
|
|
<h5>Video</h5>
|
|
<ul class="list-unstyled">
|
|
% if data['transcode_video_dec'] != 'direct play':
|
|
<li>Stream Type: <strong>${data['transcode_video_dec']}</strong></li>
|
|
<li>Video Resolution: <strong>${data['transcode_height']}p</strong></li>
|
|
<li>Video Codec: <strong>${data['transcode_video_codec']}</strong></li>
|
|
<li>Video Width: <strong>${data['transcode_width']}</strong></li>
|
|
<li>Video Height: <strong>${data['transcode_height']}</strong></li>
|
|
% else:
|
|
<li>Stream Type: <strong>${data['transcode_video_dec']}</strong></li>
|
|
% if data['video_resolution'] != 'sd':
|
|
<li>Video Resolution: <strong>${data['video_resolution']}p</strong></li>
|
|
% else:
|
|
<li>Video Resolution: <strong>${data['video_resolution']}</strong></li>
|
|
% endif
|
|
<li>Video Codec: <strong>${data['video_codec']}</strong></li>
|
|
<li>Video Width: <strong>${data['width']}</strong></li>
|
|
<li>Video Height: <strong>${data['height']}</strong></li>
|
|
% endif
|
|
</ul>
|
|
% endif
|
|
<h5>Audio</h5>
|
|
<ul class="list-unstyled">
|
|
% if data['transcode_audio_dec'] != 'direct play':
|
|
<li>Stream Type: <strong>${data['transcode_audio_dec']}</strong></li>
|
|
<li>Audio Codec: <strong>${data['transcode_audio_codec']}</strong></li>
|
|
<li>Audio Channels: <strong>${data['transcode_audio_channels']}</strong></li>
|
|
% else:
|
|
<li>Stream Type: <strong>${data['transcode_audio_dec']}</strong></li>
|
|
<li>Audio Codec: <strong>${data['audio_codec']}</strong></li>
|
|
<li>Audio Channels: <strong>${data['audio_channels']}</strong></li>
|
|
% endif
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<h4><strong>Media Source Details</strong></h4>
|
|
<ul class="list-unstyled">
|
|
<li>Container: <strong>${data['container']}</strong></li>
|
|
% if data['media_type'] != 'track':
|
|
<li>Resolution: <strong>${data['height']}p</strong></li>
|
|
% endif
|
|
<li>Bitrate: <strong>${data['bitrate']} kbps</strong></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-4">
|
|
% if data['media_type'] != 'track':
|
|
<h4><strong>Video Source Details</strong></h4>
|
|
<ul class="list-unstyled">
|
|
<li>Width: <strong>${data['width']}</strong></li>
|
|
<li>Height: <strong>${data['height']}</strong></li>
|
|
<li>Aspect Ratio: <strong>${data['aspect_ratio']}</strong></li>
|
|
<li>Video Frame Rate: <strong>${data['video_framerate']}</strong></li>
|
|
<li>Video Codec: <strong>${data['video_codec']}</strong></li>
|
|
</ul>
|
|
% endif
|
|
<h4><strong>Audio Source Details</strong></h4>
|
|
<ul class="list-unstyled">
|
|
<li>Audio Codec: <strong>${data['audio_codec']}</strong></li>
|
|
<li>Audio Channels: <strong>${data['audio_channels']}</strong></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
% endif |