mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update tv recording page
This commit is contained in:
parent
fb64641b57
commit
72b7920f68
9 changed files with 56 additions and 34 deletions
|
@ -870,16 +870,6 @@
|
|||
attributes.push('<span class="mediaInfoAttribute">' + (parseInt(stream.BitRate / 1000)) + ' kbps</span>');
|
||||
}
|
||||
|
||||
if (stream.SampleRate) {
|
||||
attributes.push('<span class="mediaInfoAttribute">' + stream.SampleRate + ' khz</span>');
|
||||
}
|
||||
|
||||
var framerate = stream.AverageFrameRate || stream.RealFrameRate;
|
||||
|
||||
if (framerate && item.MediaType != "Audio") {
|
||||
attributes.push('<span class="mediaInfoAttribute">' + framerate + '</span>');
|
||||
}
|
||||
|
||||
if (stream.IsDefault) {
|
||||
attributes.push('<span class="mediaInfoAttribute">Default</span>');
|
||||
}
|
||||
|
|
|
@ -173,34 +173,22 @@
|
|||
|
||||
var views = [];
|
||||
|
||||
var showViewsHeader;
|
||||
|
||||
if (counts.MovieCount || counts.TrailerCount) {
|
||||
showViewsHeader = true;
|
||||
views.push({ id: "moviesView", name: "Movies", url: "moviesrecommended.html", img: "css/images/items/list/chapter.png", background: "#0094FF" });
|
||||
}
|
||||
|
||||
if (counts.EpisodeCount || counts.SeriesCount) {
|
||||
showViewsHeader = true;
|
||||
views.push({ id: "tvView", name: "TV Shows", url: "tvrecommended.html", img: "css/images/items/list/collection.png", background: "#FF870F" });
|
||||
}
|
||||
|
||||
if (counts.SongCount || counts.MusicVideoCount) {
|
||||
showViewsHeader = true;
|
||||
views.push({ id: "musicView", name: "Music", url: "musicrecommended.html", img: "css/images/items/list/audiocollection.png", background: "#6FBD45" });
|
||||
}
|
||||
|
||||
if (counts.GameCount) {
|
||||
showViewsHeader = true;
|
||||
views.push({ id: "gamesView", name: "Games", url: "gamesrecommended.html", img: "css/images/items/list/gamecollection.png", background: "#E12026" });
|
||||
}
|
||||
|
||||
if (showViewsHeader) {
|
||||
$('#viewsHeader', page).show();
|
||||
} else {
|
||||
$('#viewsHeader', page).hide();
|
||||
}
|
||||
|
||||
var html = '';
|
||||
|
||||
for (var i = 0, length = views.length; i < length; i++) {
|
||||
|
|
|
@ -2051,6 +2051,18 @@
|
|||
miscInfo.push(item.OfficialRating);
|
||||
}
|
||||
|
||||
if (item.Type == "Recording") {
|
||||
|
||||
if (item.IsHD) {
|
||||
miscInfo.push("HD");
|
||||
}
|
||||
|
||||
if (item.IsRepeat) {
|
||||
miscInfo.push("Repeat");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (item.Video3DFormat) {
|
||||
miscInfo.push("3D");
|
||||
}
|
||||
|
|
|
@ -33,7 +33,9 @@
|
|||
Dashboard.setPageTitle(name);
|
||||
|
||||
$('.itemName', page).html(name);
|
||||
$('.itemChannelNumber', page).html(item.Number);
|
||||
$('.itemChannelNumber', page).html(item.ChannelName);
|
||||
|
||||
$('.itemEpisodeName', page).html(item.EpisodeTitle);
|
||||
|
||||
if (item.CommunityRating) {
|
||||
$('.itemCommunityRating', page).html(LibraryBrowser.getRatingHtml(item)).show();
|
||||
|
@ -62,6 +64,14 @@
|
|||
$('#playButtonContainer', page).hide();
|
||||
}
|
||||
|
||||
$('.status', page).html('Status: ' + item.Status);
|
||||
|
||||
if (item.Audio) {
|
||||
$('.audio', page).html('Audio: ' + item.Audio).show();
|
||||
} else {
|
||||
$('.audio', page).hide();
|
||||
}
|
||||
|
||||
Dashboard.getCurrentUser().done(function (user) {
|
||||
|
||||
if (user.Configuration.IsAdministrator && item.LocationType !== "Offline") {
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
|
||||
currentItem = item;
|
||||
|
||||
$('.timerName', page).html(item.Name);
|
||||
$('.program', page).html(item.Name);
|
||||
$('.channel', page).html(item.ChannelName);
|
||||
$('.overview', page).html(item.Overview || '');
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue