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) {
|
(function ($, document, apiClient) {
|
||||||
|
|
||||||
var currentItem;
|
var currentItem;
|
||||||
|
|
||||||
function getDisplayTime(date) {
|
function getDisplayTime(date) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
date = parseISO8601Date(date, { toLocal: true });
|
date = parseISO8601Date(date, { toLocal: true });
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
html += '<tr>';
|
html += '<tr>';
|
||||||
|
|
||||||
html += '<td>';
|
html += '<td>';
|
||||||
|
|
||||||
if (program.recordingId) {
|
if (program.recordingId) {
|
||||||
html += '<button type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Cancel</button>';
|
html += '<button type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Cancel</button>';
|
||||||
} else {
|
} else {
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '<td>' + startDate.toLocaleDateString() + '</td>';
|
html += '<td>' + startDate.toLocaleDateString() + '</td>';
|
||||||
|
|
||||||
html += '<td>' + getDisplayTime(program.StartDate) + '</td>';
|
html += '<td>' + getDisplayTime(program.StartDate) + '</td>';
|
||||||
|
|
||||||
html += '<td>' + getDisplayTime(program.EndDate) + '</td>';
|
html += '<td>' + getDisplayTime(program.EndDate) + '</td>';
|
||||||
|
@ -84,7 +84,8 @@
|
||||||
function loadPrograms(page) {
|
function loadPrograms(page) {
|
||||||
|
|
||||||
ApiClient.getLiveTvPrograms({
|
ApiClient.getLiveTvPrograms({
|
||||||
ChannelIds: currentItem.Id
|
ChannelIds: currentItem.Id,
|
||||||
|
UserId: Dashboard.getCurrentUserId()
|
||||||
|
|
||||||
}).done(function (result) {
|
}).done(function (result) {
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,11 @@
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
apiClient.getLiveTvChannels().done(function (result) {
|
apiClient.getLiveTvChannels({
|
||||||
|
|
||||||
|
userId: Dashboard.getCurrentUserId()
|
||||||
|
|
||||||
|
}).done(function (result) {
|
||||||
|
|
||||||
renderChannels(page, result.Items);
|
renderChannels(page, result.Items);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue