diff --git a/dashboard-ui/scripts/livetvchannel.js b/dashboard-ui/scripts/livetvchannel.js index a49ed74737..e701d17476 100644 --- a/dashboard-ui/scripts/livetvchannel.js +++ b/dashboard-ui/scripts/livetvchannel.js @@ -1,9 +1,9 @@ (function ($, document, apiClient) { var currentItem; - + function getDisplayTime(date) { - + try { date = parseISO8601Date(date, { toLocal: true }); @@ -45,7 +45,7 @@ html += ''; html += ''; - + if (program.recordingId) { html += ''; } else { @@ -65,7 +65,7 @@ } html += '' + startDate.toLocaleDateString() + ''; - + html += '' + getDisplayTime(program.StartDate) + ''; html += '' + getDisplayTime(program.EndDate) + ''; @@ -84,7 +84,8 @@ function loadPrograms(page) { ApiClient.getLiveTvPrograms({ - ChannelIds: currentItem.Id + ChannelIds: currentItem.Id, + UserId: Dashboard.getCurrentUserId() }).done(function (result) { diff --git a/dashboard-ui/scripts/livetvchannels.js b/dashboard-ui/scripts/livetvchannels.js index a26c7d6dcb..15a943d753 100644 --- a/dashboard-ui/scripts/livetvchannels.js +++ b/dashboard-ui/scripts/livetvchannels.js @@ -74,7 +74,11 @@ var page = this; - apiClient.getLiveTvChannels().done(function (result) { + apiClient.getLiveTvChannels({ + + userId: Dashboard.getCurrentUserId() + + }).done(function (result) { renderChannels(page, result.Items); });