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

add sports and kids recording categories

This commit is contained in:
Luke Pulverenti 2016-09-06 13:59:10 -04:00
parent 5ec5a0d9fa
commit 1efcc067f0
14 changed files with 122 additions and 103 deletions

View file

@ -1,5 +1,24 @@
define(['scripts/livetvcomponents', 'emby-button', 'emby-itemscontainer'], function () {
function renderActiveRecordings(context) {
ApiClient.getLiveTvTimers({
IsActive: true
}).then(function (result) {
// The IsActive param is new, so handle older servers that don't support it
if (result.Items.length && result.Items[0].Status != 'InProgress') {
result.Items = [];
}
renderTimers(context.querySelector('#activeRecordings'), result.Items, {
indexByDate: false
});
});
}
function renderTimers(context, timers, options) {
LiveTvHelpers.getTimersHtml(timers, options).then(function (html) {
@ -33,6 +52,7 @@
Dashboard.showLoadingMsg();
renderActiveRecordings(context);
renderUpcomingRecordings(context);
}