library browser style fixes

This commit is contained in:
Luke Pulverenti 2013-09-03 17:06:33 -04:00
parent 44af31404e
commit 9506f259e7
4 changed files with 30 additions and 29 deletions

View file

@ -727,15 +727,14 @@
var attributes = [];
if (stream.Codec) {
if (stream.Codec && stream.Codec != "dca") {
attributes.push('<span class="mediaInfoAttribute">' + stream.Codec + '</span>');
}
if (stream.Profile) {
if (stream.Profile && stream.Codec == "dca") {
attributes.push('<span class="mediaInfoAttribute">' + stream.Profile + '</span>');
}
if (stream.Level) {
attributes.push('<span class="mediaInfoAttribute">Level ' + stream.Level + '</span>');
}
if (stream.Language) {
attributes.push('<span class="mediaInfoAttribute">' + stream.Language + '</span>');
}
@ -770,10 +769,6 @@
attributes.push('<span class="mediaInfoAttribute">' + framerate + '</span>');
}
if (stream.PixelFormat) {
attributes.push('<span class="mediaInfoAttribute">' + stream.PixelFormat + '</span>');
}
if (stream.IsDefault) {
attributes.push('<span class="mediaInfoAttribute">Default</span>');
}
@ -866,7 +861,7 @@
} else {
$('#trailerSectionHeader', page).html('Trailers');
}
var remoteTrailersHtml = '';
for (var i = 0, length = item.RemoteTrailers.length; i < length; i++) {
@ -876,7 +871,7 @@
var id = getParameterByName('v', trailer.Url);
if (id) {
remoteTrailersHtml += '<iframe class="posterItem smallBackdropPosterItem" style="margin:0 3px;position:relative;top:9px;width:auto;" src="//www.youtube.com/embed/' + id + '" frameborder="0" allowfullscreen></iframe>';
remoteTrailersHtml += '<iframe class="posterItem smallBackdropPosterItem" style="margin:0 3px;width:auto;" src="//www.youtube.com/embed/' + id + '" frameborder="0" allowfullscreen></iframe>';
}
}