(function () { window.LiveTvHelpers = { getDaysOfWeek: function () { var days = [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ]; return days.map(function (d) { return { name: d, value: d }; }); }, renderMiscProgramInfo: function (elem, obj) { var html = []; if (obj.IsSeries && !obj.IsRepeat) { html.push('' + Globalize.translate('LabelNewProgram') + ''); } if (obj.IsLive) { html.push('' + Globalize.translate('LabelLiveProgram') + ''); } if (obj.ChannelId) { html.push('' + obj.ChannelName + ''); } if (obj.IsHD) { html.push(Globalize.translate('LabelHDProgram')); } if (obj.Audio) { html.push(obj.Audio); } html = html.join(' '); if (obj.SeriesTimerId) { html += ''; html += ''; html += ''; html += ''; html += ''; } else if (obj.TimerId) { html += ''; html += ''; html += ''; } elem.html(html).trigger('create'); }, renderOriginalAirDate: function (elem, item) { var airDate = item.OriginalAirDate; if (airDate && item.IsRepeat) { try { airDate = parseISO8601Date(airDate, { toLocal: true }).toLocaleDateString(); } catch (e) { Logger.log("Error parsing date: " + airDate); } elem.html(Globalize.translate('ValueOriginalAirDate').replace('{0}', airDate)).show(); } else { elem.hide(); } } }; })(); (function ($, document, window) { var showOverlayTimeout; var hideOverlayTimeout; var currentPosterItem; function onOverlayMouseOver() { if (hideOverlayTimeout) { clearTimeout(hideOverlayTimeout); hideOverlayTimeout = null; } } function onOverlayMouseOut() { startHideOverlayTimer(); } function getOverlayHtml(item) { var html = ''; html += '
'; html += item.EpisodeTitle; html += '
'; } html += ''; html += ''; html += ''; html += LibraryBrowser.getRatingHtml(item); html += ''; html += ''; html += LibraryBrowser.getUserDataIconsHtml(item); html += ''; html += '
'; html += ''; html += ''; html += (item.Overview || ''); html += '
'; html += '