mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added recording status enum
This commit is contained in:
parent
c8244de802
commit
f12c57a1b5
2 changed files with 11 additions and 6 deletions
|
@ -1,9 +1,9 @@
|
|||
(function ($, document, apiClient) {
|
||||
|
||||
var currentItem;
|
||||
|
||||
|
||||
function getDisplayTime(date) {
|
||||
|
||||
|
||||
try {
|
||||
|
||||
date = parseISO8601Date(date, { toLocal: true });
|
||||
|
@ -45,7 +45,7 @@
|
|||
html += '<tr>';
|
||||
|
||||
html += '<td>';
|
||||
|
||||
|
||||
if (program.recordingId) {
|
||||
html += '<button type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Cancel</button>';
|
||||
} else {
|
||||
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
html += '<td>' + startDate.toLocaleDateString() + '</td>';
|
||||
|
||||
|
||||
html += '<td>' + getDisplayTime(program.StartDate) + '</td>';
|
||||
|
||||
html += '<td>' + getDisplayTime(program.EndDate) + '</td>';
|
||||
|
@ -84,7 +84,8 @@
|
|||
function loadPrograms(page) {
|
||||
|
||||
ApiClient.getLiveTvPrograms({
|
||||
ChannelIds: currentItem.Id
|
||||
ChannelIds: currentItem.Id,
|
||||
UserId: Dashboard.getCurrentUserId()
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
|
|
|
@ -74,7 +74,11 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
apiClient.getLiveTvChannels().done(function (result) {
|
||||
apiClient.getLiveTvChannels({
|
||||
|
||||
userId: Dashboard.getCurrentUserId()
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
renderChannels(page, result.Items);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue