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

add sports to suggested tv

This commit is contained in:
Luke Pulverenti 2015-04-03 12:31:56 -04:00
parent fd459b0744
commit a25bc8c8a3
3 changed files with 34 additions and 28 deletions

View file

@ -33,7 +33,8 @@
IsAiring: false,
HasAired: false,
limit: 10,
IsMovie: false
IsMovie: false,
IsSports: false
}).done(function (result) {
@ -73,6 +74,28 @@
$('.upcomingTvMovieItems', page).html(html).lazyChildren();
});
ApiClient.getLiveTvRecommendedPrograms({
userId: Dashboard.getCurrentUserId(),
IsAiring: false,
HasAired: false,
limit: 10,
IsSports: true
}).done(function (result) {
var html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "auto",
showTitle: true,
coverImage: true,
overlayText: false,
lazy: true
});
$('.upcomingSportsItems', page).html(html).lazyChildren();
});
}
$(document).on('pagebeforeshow', "#liveTvSuggestedPage", function () {