1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added live tv items page

This commit is contained in:
Luke Pulverenti 2015-03-14 16:56:50 -04:00
parent e46774b7e9
commit cd790906f9
5 changed files with 339 additions and 6 deletions

View file

@ -8,14 +8,14 @@
userId: Dashboard.getCurrentUserId(),
IsAiring: true,
limit: 18
limit: 16
}).done(function (result) {
var html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "square",
shape: "auto",
showTitle: true,
showParentTitle: true,
overlayText: true,
@ -32,14 +32,15 @@
userId: Dashboard.getCurrentUserId(),
IsAiring: false,
HasAired: false,
limit: 18
limit: 10,
IsMovie: false
}).done(function (result) {
var html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "square",
shape: "auto",
showTitle: true,
showParentTitle: true,
overlayText: true,
@ -50,6 +51,28 @@
$('.upcomingProgramItems', page).html(html).lazyChildren();
});
ApiClient.getLiveTvRecommendedPrograms({
userId: Dashboard.getCurrentUserId(),
IsAiring: false,
HasAired: false,
limit: 10,
IsMovie: true
}).done(function (result) {
var html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "auto",
showTitle: true,
coverImage: true,
overlayText: false,
lazy: true
});
$('.upcomingTvMovieItems', page).html(html).lazyChildren();
});
}
$(document).on('pagebeforeshow', "#liveTvSuggestedPage", function () {