Add mediainfo tab to nzb details page.

This commit is contained in:
DariusIII
2015-07-15 22:39:36 +02:00
parent f1f3b958f4
commit 2103bc6405
2 changed files with 936 additions and 565 deletions
File diff suppressed because it is too large Load Diff
@@ -134,6 +134,9 @@
{if ($release.haspreview == 1 && $userdata.canpreview == 1) || ($release.haspreview == 2 && $userdata.canpreview == 1)}
<li><a href="#pane7" data-toggle="tab">Preview</a></li>
{/if}
{if $reVideo.releaseid|@count > 0 || $reAudio|@count > 0}
<li><a href="#pane8" data-toggle="tab">MediaInfo</a></li>
{/if}
</ul>
<div class="tab-content">
@@ -620,6 +623,152 @@
data-target="#modal-image"/>
</div>
{/if}
{if $reVideo.releaseid|@count > 0 || $reAudio|@count > 0}
<div id="pane8" class="tab-pane">
<table style="width:100%;" class="table table-striped table-responsive table-hover">
<tr>
<th width="15%"></th>
<th>Property</th>
<th class="right">Value</th>
</tr>
{if $reVideo.containerformat != ""}
<tr>
<td style="width:15%;"><strong>Overall</strong></td>
<td>Container Format</td>
<td class="right">{$reVideo.containerformat}</td>
</tr>
{/if}
{if $reVideo.overallbitrate != ""}
<tr>
<td></td>
<td>Bitrate</td>
<td class="right">{$reVideo.overallbitrate}</td>
</tr>
{/if}
{if $reVideo.videoduration != ""}
<tr>
<td><strong>Video</strong></td>
<td>Duration</td>
<td class="right">{$reVideo.videoduration}</td>
</tr>
{/if}
{if $reVideo.videoformat != ""}
<tr>
<td></td>
<td>Format</td>
<td class="right">{$reVideo.videoformat}</td>
</tr>
{/if}
{if $reVideo.videocodec != ""}
<tr>
<td></td>
<td>Codec</td>
<td class="right">{$reVideo.videocodec}</td>
</tr>
{/if}
{if $reVideo.videowidth != "" && $reVideo.videoheight != ""}
<tr>
<td></td>
<td>Width x Height</td>
<td class="right">{$reVideo.videowidth}x{$reVideo.videoheight}</td>
</tr>
{/if}
{if $reVideo.videoaspect != ""}
<tr>
<td></td>
<td>Aspect</td>
<td class="right">{$reVideo.videoaspect}</td>
</tr>
{/if}
{if $reVideo.videoframerate != ""}
<tr>
<td></td>
<td>Framerate</td>
<td class="right">{$reVideo.videoframerate} fps</td>
</tr>
{/if}
{if $reVideo.videolibrary != ""}
<tr>
<td></td>
<td>Library</td>
<td class="right">{$reVideo.videolibrary}</td>
</tr>
{/if}
{foreach from=$reAudio item=audio}
<tr>
<td><strong>Audio {$audio.audioid}</strong></td>
<td>Format</td>
<td class="right">{$audio.audioformat}</td>
</tr>
{if $audio.audiolanguage != ""}
<tr>
<td></td>
<td>Language</td>
<td class="right">{$audio.audiolanguage}</td>
</tr>
{/if}
{if $audio.audiotitle != ""}
<tr>
<td></td>
<td>Title</td>
<td class="right">{$audio.audiotitle}</td>
</tr>
{/if}
{if $audio.audiomode != ""}
<tr>
<td></td>
<td>Mode</td>
<td class="right">{$audio.audiomode}</td>
</tr>
{/if}
{if $audio.audiobitratemode != ""}
<tr>
<td></td>
<td>Bitrate Mode</td>
<td class="right">{$audio.audiobitratemode}</td>
</tr>
{/if}
{if $audio.audiobitrate != ""}
<tr>
<td></td>
<td>Bitrate</td>
<td class="right">{$audio.audiobitrate}</td>
</tr>
{/if}
{if $audio.audiochannels != ""}
<tr>
<td></td>
<td>Channels</td>
<td class="right">{$audio.audiochannels}</td>
</tr>
{/if}
{if $audio.audiosamplerate != ""}
<tr>
<td></td>
<td>Sample Rate</td>
<td class="right">{$audio.audiosamplerate}</td>
</tr>
{/if}
{if $audio.audiolibrary != ""}
<tr>
<td></td>
<td>Library</td>
<td class="right">{$audio.audiolibrary}</td>
</tr>
{/if}
{/foreach}
{if $reSubs.subs != ""}
<tr>
<td><strong>Subtitles</strong></td>
<td>Languages</td>
<td class="right">{$reSubs.subs|escape:"htmlall"}</td>
</tr>
{/if}
</table>
</div>
{/if}
</div>
</div>
<!-- /.tab-content -->
</div>