Fix broken bif indexes on activity pane.

Fix incorrect video dimensions when media transcoded on activity pane.
This commit is contained in:
Tim 2015-08-28 11:40:22 +02:00
commit 883a183208

View file

@ -71,7 +71,7 @@ DOCUMENTATION :: END
% if a['type'] == 'movie' and not a['indexes']: % if a['type'] == 'movie' and not a['indexes']:
<div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['art']}&width=500&height=280);"></div> <div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['art']}&width=500&height=280);"></div>
% elif a['indexes']: % elif a['indexes']:
<div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['bif_thumb']}&width=300&height=280); display: none;" onload="fadeIn(this)"></div> <div class="dashboard-activity-poster-face bif" style="background-image: url(pms_image_proxy?img=${a['bif_thumb']}&width=300&height=280); display: none;"></div>
% else: % else:
% if a['type'] == 'episode': % if a['type'] == 'episode':
<div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=500&height=280&fallback=cover);"></div> <div class="dashboard-activity-poster-face" style="background-image: url(pms_image_proxy?img=${a['thumb']}&width=500&height=280&fallback=cover);"></div>
@ -128,7 +128,7 @@ DOCUMENTATION :: END
% elif a['video_decision'] == 'copy': % elif a['video_decision'] == 'copy':
Video &nbsp;<strong>Direct Stream (${a['transcode_video_codec']}) (${a['width']}x${a['height']})</strong> Video &nbsp;<strong>Direct Stream (${a['transcode_video_codec']}) (${a['width']}x${a['height']})</strong>
% elif a['video_decision'] == 'transcode': % elif a['video_decision'] == 'transcode':
Video &nbsp;<strong>Transcode (${a['transcode_video_codec']}) (${a['width']}x${a['height']})</strong> Video &nbsp;<strong>Transcode (${a['transcode_video_codec']}) (${a['transcode_width']}x${a['transcode_height']})</strong>
% endif % endif
<br /> <br />
% if a['audio_decision'] == 'direct play': % if a['audio_decision'] == 'direct play':
@ -200,9 +200,10 @@ DOCUMENTATION :: END
% endfor % endfor
<script> <script>
// When using bif indexes make the image transition a little smoother. // When using bif indexes make the image transition a little smoother.
function fadeIn(obj) { $('.bif').each(function() {
$(obj).fadeIn(450); $(this).fadeIn(1000);
} });
// Convert timestamps to readable times // Convert timestamps to readable times
$('.progress_time').each(function(index) { $('.progress_time').each(function(index) {
$(this).html(millisecondsToMinutes($(this).text(), false)); $(this).html(millisecondsToMinutes($(this).text(), false));