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

live tv + nuget updates

This commit is contained in:
Luke Pulverenti 2013-12-15 09:19:24 -05:00
parent b2b7584352
commit f0a64f2f2e
4 changed files with 112 additions and 46 deletions

View file

@ -32,9 +32,8 @@
html += '<th class="tabletColumn">&nbsp;</th>';
html += '<th>Name</th>';
html += '<th class="desktopColumn">Channel</th>';
html += '<th>Start</th>';
html += '<th>End</th>';
html += '<th class="tabletColumn">Days</th>';
html += '<th class="tabletColumn">Time</th>';
html += '</tr>';
@ -53,33 +52,15 @@
html += '</td>';
html += '<td class="desktopColumn">';
if (timer.ChannelId) {
if (timer.RecurrenceType == 'NewProgramEventsAllChannels' || timer.RecurrenceType == 'AllProgramEventsAllChannels') {
html += 'All Channels';
}
else if (timer.ChannelId) {
html += '<a href="livetvchannel.html?id=' + timer.ChannelId + '">' + timer.ChannelName + '</a>';
}
html += '</td>';
var startDate = timer.StartDate;
var endDate = timer.StartDate;
try {
startDate = parseISO8601Date(startDate, { toLocal: true });
} catch (err) {
}
try {
endDate = parseISO8601Date(endDate, { toLocal: true });
} catch (err) {
}
html += '<td>' + startDate.toLocaleDateString() + '</td>';
html += '<td>' + endDate.toLocaleDateString() + '</td>';
html += '<td class="tabletColumn">';
if (timer.DayPattern) {
@ -93,6 +74,8 @@
html += '</td>';
html += '<td class="tabletColumn">' + LiveTvHelpers.getDisplayTime(timer.StartDate) + '</td>';
html += '</tr>';
}