mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update live tv pages
This commit is contained in:
parent
ec67431a0e
commit
a61e96accb
19 changed files with 172 additions and 216 deletions
|
@ -27,14 +27,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
||||
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
||||
"_release": "1.0.8",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.8",
|
||||
"commit": "663ad706b43989f4961d945b8116cf4db346532f"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-behaviors"
|
||||
"_originalSource": "PolymerElements/iron-behaviors"
|
||||
}
|
|
@ -25,14 +25,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.3",
|
||||
"commit": "91529259262b0d8f33fed44bc3fd47aedf35cb04"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-meta"
|
||||
"_originalSource": "polymerelements/iron-meta"
|
||||
}
|
|
@ -30,14 +30,14 @@
|
|||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
||||
"_release": "1.0.2",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.2",
|
||||
"commit": "b546dbe6ad0b1f58cac80caec3136cf3232e12fc"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/paper-ripple"
|
||||
"_originalSource": "PolymerElements/paper-ripple"
|
||||
}
|
|
@ -99,12 +99,12 @@
|
|||
</neon-animatable>
|
||||
<neon-animatable>
|
||||
<div class="pageTabContent recordingsTabContent" data-index="3">
|
||||
<div id="activeRecordings" style="display: none;" class="homePageSection">
|
||||
<div id="activeRecordings" class="homePageSection hide">
|
||||
<h1 class="listHeader">${HeaderActiveRecordings}</h1>
|
||||
<div class="recordingItems itemsContainer"></div>
|
||||
<br />
|
||||
</div>
|
||||
<div id="latestRecordings" style="display: none;" class="homePageSection">
|
||||
<div id="latestRecordings" class="homePageSection hide">
|
||||
<div>
|
||||
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderLatestRecordings}</h1>
|
||||
<paper-button raised class="submit mini categorySyncButton" data-category="Latest"><iron-icon icon="refresh"></iron-icon><span>${ButtonSync}</span></paper-button>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<title>Emby</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="liveTvSeriesTimerPage" data-role="page" class="page libraryPage liveTvPage noSecondaryNavPage" data-contextname="${HeaderLiveTv}" data-require="jqmcontrolgroup,jqmcollapsible,scripts/livetvcomponents,scripts/livetvseriestimer,livetvcss,jqmlistview" data-backbutton="true" data-menubutton="false">
|
||||
<div id="liveTvSeriesTimerPage" data-role="page" class="page libraryPage liveTvPage noSecondaryNavPage" data-contextname="${HeaderLiveTv}" data-require="jqmcheckbox,jqmcontrolgroup,jqmcollapsible,scripts/livetvcomponents,scripts/livetvseriestimer,livetvcss" data-backbutton="true" data-menubutton="false">
|
||||
|
||||
<div data-role="content">
|
||||
<form class="liveTvSeriesTimerForm" style="margin: 0 auto; max-width: 720px;">
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinit', ".libraryPage", function () {
|
||||
pageClassOn('pageinit', "libraryPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -78,7 +78,6 @@
|
|||
} else {
|
||||
init(page, pickers[0]);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$.fn.alphaValue = function (val) {
|
||||
|
|
|
@ -204,7 +204,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
Events.on(document, 'pagebeforeshow', ".page", function () {
|
||||
pageClassOn('pagebeforeshow', "page", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageinit', ".collectionEditorPage", function () {
|
||||
pageClassOn('pageinit', "collectionEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -111,16 +111,16 @@
|
|||
|
||||
var i, length;
|
||||
|
||||
var elem = $('.sections', page);
|
||||
var elem = page.querySelector('.sections');
|
||||
|
||||
if (!elem.html().length) {
|
||||
if (!elem.innerHTML) {
|
||||
var html = '';
|
||||
for (i = 0, length = sections.length; i < length; i++) {
|
||||
|
||||
html += '<div class="homePageSection section' + sections[i].id + '"></div>';
|
||||
}
|
||||
|
||||
elem.html(html);
|
||||
elem.innerHTML = html;
|
||||
}
|
||||
|
||||
var promises = [];
|
||||
|
|
|
@ -1157,7 +1157,7 @@
|
|||
smallIcon: true
|
||||
});
|
||||
|
||||
$('#themeSongsContent', page).html(html);
|
||||
page.querySelector('#themeSongsContent').innerHTML = html;
|
||||
} else {
|
||||
$('#themeSongsCollapsible', page).hide();
|
||||
}
|
||||
|
|
|
@ -315,7 +315,12 @@
|
|||
|
||||
if (LibraryBrowser.enableFullPaperTabs()) {
|
||||
|
||||
page.querySelector('paper-tabs').selected = selected;
|
||||
var tabs = page.querySelector('paper-tabs');
|
||||
if (tabs.selected) {
|
||||
// showTab was called
|
||||
return;
|
||||
}
|
||||
tabs.selected = selected;
|
||||
|
||||
} else {
|
||||
page.querySelector('neon-animated-pages').selected = selected;
|
||||
|
|
|
@ -1211,7 +1211,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinit', ".libraryPage", function () {
|
||||
pageClassOn('pageinit', "libraryPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -1270,7 +1270,9 @@
|
|||
$(itemsContainers[i]).createCardMenus();
|
||||
}
|
||||
|
||||
}).on('pagebeforeshow', ".libraryPage", function () {
|
||||
});
|
||||
|
||||
pageClassOn('pagebeforeshow', "libraryPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
|
@ -1,5 +1,98 @@
|
|||
(function () {
|
||||
|
||||
function getTimersHtml(timers) {
|
||||
var html = '';
|
||||
|
||||
var index = '';
|
||||
|
||||
for (var i = 0, length = timers.length; i < length; i++) {
|
||||
|
||||
var timer = timers[i];
|
||||
|
||||
var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true }));
|
||||
|
||||
if (startDateText != index) {
|
||||
|
||||
if (index) {
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += '<div class="homePageSection">';
|
||||
html += '<h1>' + startDateText + '</h1>';
|
||||
html += '<div class="paperList">';
|
||||
index = startDateText;
|
||||
}
|
||||
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
var program = timer.ProgramInfo || {};
|
||||
var imgUrl;
|
||||
|
||||
if (program.ImageTags && program.ImageTags.Primary) {
|
||||
|
||||
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
||||
height: 80,
|
||||
tag: program.ImageTags.Primary,
|
||||
type: "Primary"
|
||||
});
|
||||
}
|
||||
|
||||
if (imgUrl) {
|
||||
html += '<paper-fab class="listAvatar blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsKids) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsSports) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsMovie) {
|
||||
html += '<paper-fab class="listAvatar" icon="movie" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsNews) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
html += '<paper-fab class="listAvatar blue" icon="live-tv" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<a class="clearLink" href="livetvtimer.html?id=' + timer.Id + '">';
|
||||
|
||||
html += '<div>';
|
||||
html += timer.Name;
|
||||
html += '</div>';
|
||||
|
||||
html += '<div secondary>';
|
||||
html += LibraryBrowser.getDisplayTime(timer.StartDate);
|
||||
html += ' - ' + LibraryBrowser.getDisplayTime(timer.EndDate);
|
||||
html += '</div>';
|
||||
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
|
||||
if (timer.SeriesTimerId) {
|
||||
html += '<div class="ui-li-aside" style="right:0;">';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += '<paper-icon-button icon="cancel" data-timerid="' + timer.Id + '" title="' + Globalize.translate('ButonCancelRecording') + '" class="btnDeleteTimer"></paper-icon-button>';
|
||||
|
||||
html += '</paper-icon-item>';
|
||||
}
|
||||
|
||||
if (timers.length) {
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
return html;
|
||||
}
|
||||
|
||||
window.LiveTvHelpers = {
|
||||
|
||||
getDaysOfWeek: function () {
|
||||
|
@ -42,7 +135,8 @@
|
|||
} else {
|
||||
elem.hide();
|
||||
}
|
||||
}
|
||||
},
|
||||
getTimersHtml: getTimersHtml
|
||||
|
||||
};
|
||||
})();
|
||||
|
@ -135,7 +229,7 @@
|
|||
|
||||
function onPlayClick() {
|
||||
|
||||
$('.itemFlyout').popup('close');
|
||||
hideOverlay();
|
||||
|
||||
MediaController.play({
|
||||
ids: [this.getAttribute('data-id')]
|
||||
|
@ -143,7 +237,7 @@
|
|||
}
|
||||
|
||||
function onRecordClick() {
|
||||
$('.itemFlyout').popup('close');
|
||||
hideOverlay();
|
||||
|
||||
Dashboard.navigate('livetvnewrecording.html?programid=' + this.getAttribute('data-id'));
|
||||
}
|
||||
|
@ -151,7 +245,7 @@
|
|||
function showOverlay(elem, item) {
|
||||
|
||||
require(['jqmpopup'], function () {
|
||||
$('.itemFlyout').popup('close').remove();
|
||||
hideOverlay();
|
||||
|
||||
var html = '<div data-role="popup" class="itemFlyout" data-theme="b" data-arrow="true" data-history="false">';
|
||||
|
||||
|
@ -165,8 +259,6 @@
|
|||
|
||||
html += '</div>';
|
||||
|
||||
$('.itemFlyout').popup('close').popup('destroy').remove();
|
||||
|
||||
$(document.body).append(html);
|
||||
|
||||
var popup = $('.itemFlyout').on('mouseenter', onOverlayMouseOver).on('mouseleave', onOverlayMouseOut).popup({
|
||||
|
@ -206,7 +298,11 @@
|
|||
|
||||
function hideOverlay() {
|
||||
|
||||
$('.itemFlyout').popup('close').remove();
|
||||
var flyout = document.querySelectorAll('.itemFlyout');
|
||||
|
||||
if (flyout.length) {
|
||||
$(flyout).popup('close').popup('destroy').remove();
|
||||
}
|
||||
|
||||
if (currentPosterItem) {
|
||||
|
||||
|
|
|
@ -4,15 +4,28 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<li><a href="livetvrecordinglist.html?groupid=' + group.Id + '">';
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
html += '<h3>';
|
||||
html += '<paper-fab class="listAvatar blue" icon="live-tv" item-icon></paper-fab>';
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<a href="livetvrecordinglist.html?groupid=' + group.Id + '" class="clearLink">';
|
||||
|
||||
html += '<div>';
|
||||
html += group.Name;
|
||||
html += '</h3>';
|
||||
html += '</div>';
|
||||
|
||||
html += '<span class="ui-li-count">' + group.RecordingCount + '</span>';
|
||||
html += '<div secondary>';
|
||||
if (group.RecordingCount == 1) {
|
||||
html += Globalize.translate('ValueItemCount', group.RecordingCount);
|
||||
} else {
|
||||
html += Globalize.translate('ValueItemCountPlural', group.RecordingCount);
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
html += '</li>';
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
html += '</paper-icon-item>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
@ -27,32 +40,30 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<ul data-role="listview" data-inset="true">';
|
||||
html += '<div class="paperList">';
|
||||
|
||||
for (var i = 0, length = groups.length; i < length; i++) {
|
||||
|
||||
html += getRecordingGroupHtml(groups[i]);
|
||||
}
|
||||
|
||||
html += '</ul>';
|
||||
html += '</div>';
|
||||
|
||||
$('#recordingGroupItems', page).html(html).trigger('create');
|
||||
page.querySelector('#recordingGroupItems').innerHTML = html;
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
function renderRecordings(elem, recordings) {
|
||||
|
||||
var screenWidth = $(window).width();
|
||||
|
||||
if (recordings.length) {
|
||||
elem.show();
|
||||
elem.classList.remove('hide');
|
||||
} else {
|
||||
elem.hide();
|
||||
elem.classList.add('hide');
|
||||
}
|
||||
|
||||
$('.recordingItems', elem).html(LibraryBrowser.getPosterViewHtml({
|
||||
|
||||
var recordingItems = elem.querySelector('.recordingItems');
|
||||
recordingItems.innerHTML = LibraryBrowser.getPosterViewHtml({
|
||||
items: recordings,
|
||||
shape: "auto",
|
||||
showTitle: true,
|
||||
|
@ -61,7 +72,9 @@
|
|||
coverImage: true,
|
||||
lazy: true
|
||||
|
||||
})).lazyChildren();
|
||||
});
|
||||
|
||||
ImageLoader.lazyChildren(recordingItems);
|
||||
}
|
||||
|
||||
function reload(page) {
|
||||
|
@ -75,7 +88,7 @@
|
|||
|
||||
}).done(function (result) {
|
||||
|
||||
renderRecordings($('#activeRecordings', page), result.Items);
|
||||
renderRecordings(page.querySelector('#activeRecordings'), result.Items);
|
||||
|
||||
});
|
||||
|
||||
|
@ -87,7 +100,7 @@
|
|||
|
||||
}).done(function (result) {
|
||||
|
||||
renderRecordings($('#latestRecordings', page), result.Items);
|
||||
renderRecordings(page.querySelector('#latestRecordings'), result.Items);
|
||||
});
|
||||
|
||||
ApiClient.getLiveTvRecordingGroups({
|
||||
|
|
|
@ -141,87 +141,15 @@
|
|||
|
||||
var timers = result.Items;
|
||||
|
||||
var html = '';
|
||||
var html = LiveTvHelpers.getTimersHtml(timers);
|
||||
|
||||
html += '<ul data-role="listview" data-inset="true" data-split-icon="delete">';
|
||||
var elem = $('.scheduleTab', page).html(html);
|
||||
|
||||
var index = '';
|
||||
$('.btnDeleteTimer', elem).on('click', function () {
|
||||
|
||||
for (var i = 0, length = timers.length; i < length; i++) {
|
||||
|
||||
var timer = timers[i];
|
||||
|
||||
var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true }));
|
||||
|
||||
if (startDateText != index) {
|
||||
html += '<li data-role="list-divider">' + startDateText + '</li>';
|
||||
index = startDateText;
|
||||
}
|
||||
|
||||
html += '<li><a href="livetvtimer.html?id=' + timer.Id + '">';
|
||||
|
||||
var program = timer.ProgramInfo || {};
|
||||
var imgUrl;
|
||||
|
||||
var programImages = program.ImageTags || {};
|
||||
if (programImages.Primary) {
|
||||
|
||||
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
||||
height: 80,
|
||||
tag: programImages.Primary,
|
||||
type: "Primary"
|
||||
});
|
||||
} else {
|
||||
imgUrl = "css/images/items/searchhintsv2/tv.png";
|
||||
}
|
||||
|
||||
html += '<img src="css/images/items/searchhintsv2/tv.png" style="display:none;">';
|
||||
html += '<div class="ui-li-thumb" style="background-image:url(\'' + imgUrl + '\');width:5em;height:5em;background-repeat:no-repeat;background-position:center center;background-size: cover;"></div>';
|
||||
|
||||
html += '<h3>';
|
||||
html += program.EpisodeTitle || timer.Name;
|
||||
html += '</h3>';
|
||||
|
||||
html += '<p>';
|
||||
|
||||
if (program.IsLive) {
|
||||
html += '<span class="liveTvProgram">' + Globalize.translate('LabelLiveProgram') + ' </span>';
|
||||
}
|
||||
else if (program.IsPremiere) {
|
||||
html += '<span class="premiereTvProgram">' + Globalize.translate('LabelPremiereProgram') + ' </span>';
|
||||
}
|
||||
else if (program.IsSeries && !program.IsRepeat) {
|
||||
html += '<span class="newTvProgram">' + Globalize.translate('LabelNewProgram') + ' </span>';
|
||||
}
|
||||
|
||||
html += LibraryBrowser.getDisplayTime(timer.StartDate);
|
||||
html += ' - ' + LibraryBrowser.getDisplayTime(timer.EndDate);
|
||||
html += '</p>';
|
||||
|
||||
|
||||
if (timer.SeriesTimerId) {
|
||||
html += '<div class="ui-li-aside" style="right:0;">';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += '</a>';
|
||||
|
||||
html += '<a data-timerid="' + timer.Id + '" href="#" title="' + Globalize.translate('ButonCancelRecording') + '" class="btnCancelTimer">' + Globalize.translate('ButonCancelRecording') + '</a>';
|
||||
|
||||
html += '</li>';
|
||||
}
|
||||
|
||||
html += '</ul>';
|
||||
|
||||
var elem = $('.scheduleTab', page).html(html).trigger('create');
|
||||
|
||||
$('.btnCancelTimer', elem).on('click', function () {
|
||||
|
||||
deleteTimer(page, this.getAttribute('data-timerid'));
|
||||
var id = this.getAttribute('data-timerid');
|
||||
|
||||
deleteTimer(page, id);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -21,94 +21,7 @@
|
|||
|
||||
function renderTimers(page, timers) {
|
||||
|
||||
var html = '';
|
||||
|
||||
var index = '';
|
||||
|
||||
for (var i = 0, length = timers.length; i < length; i++) {
|
||||
|
||||
var timer = timers[i];
|
||||
|
||||
var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true }));
|
||||
|
||||
if (startDateText != index) {
|
||||
|
||||
if (index) {
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += '<div class="homePageSection">';
|
||||
html += '<h1>' + startDateText + '</h1>';
|
||||
html += '<div class="paperList">';
|
||||
index = startDateText;
|
||||
}
|
||||
|
||||
html += '<paper-icon-item>';
|
||||
|
||||
var program = timer.ProgramInfo || {};
|
||||
var imgUrl;
|
||||
|
||||
if (program.ImageTags && program.ImageTags.Primary) {
|
||||
|
||||
imgUrl = ApiClient.getScaledImageUrl(program.Id, {
|
||||
height: 80,
|
||||
tag: program.ImageTags.Primary,
|
||||
type: "Primary"
|
||||
});
|
||||
}
|
||||
|
||||
if (imgUrl) {
|
||||
html += '<paper-fab class="listAvatar blue" style="background-image:url(\'' + imgUrl + '\');background-repeat:no-repeat;background-position:center center;background-size: cover;" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsKids) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#2196F3;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsSports) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#8BC34A;" icon="person" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsMovie) {
|
||||
html += '<paper-fab class="listAvatar" icon="movie" item-icon></paper-fab>';
|
||||
}
|
||||
else if (program.IsNews) {
|
||||
html += '<paper-fab class="listAvatar" style="background:#673AB7;" icon="new-releases" item-icon></paper-fab>';
|
||||
}
|
||||
else {
|
||||
html += '<paper-fab class="listAvatar blue" icon="live-tv" item-icon></paper-fab>';
|
||||
}
|
||||
|
||||
html += '<paper-item-body two-line>';
|
||||
html += '<a class="clearLink" href="livetvtimer.html?id=' + timer.Id + '">';
|
||||
|
||||
html += '<div>';
|
||||
html += timer.Name;
|
||||
html += '</div>';
|
||||
|
||||
html += '<div secondary>';
|
||||
html += LibraryBrowser.getDisplayTime(timer.StartDate);
|
||||
html += ' - ' + LibraryBrowser.getDisplayTime(timer.EndDate);
|
||||
html += '</div>';
|
||||
|
||||
html += '</a>';
|
||||
html += '</paper-item-body>';
|
||||
|
||||
if (timer.SeriesTimerId) {
|
||||
html += '<div class="ui-li-aside" style="right:0;">';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '<div class="timerCircle seriesTimerCircle"></div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
html += '<paper-icon-button icon="cancel" data-timerid="' + timer.Id + '" title="' + Globalize.translate('ButonCancelRecording') + '" class="btnDeleteTimer"></paper-icon-button>';
|
||||
|
||||
html += '</paper-icon-item>';
|
||||
}
|
||||
|
||||
if (timers.length) {
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
var html = LiveTvHelpers.getTimersHtml(timers);
|
||||
|
||||
var elem = $('#items', page).html(html);
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
appStorage.setItem(supporterPlaybackKey, new Date().getTime());
|
||||
deferred.resolve();
|
||||
}
|
||||
else if ((new Date().getTime() - lastMessage) > 432000000) {
|
||||
else if ((new Date().getTime() - lastMessage) > 345600000) {
|
||||
|
||||
showPlaybackOverlay(deferred);
|
||||
} else {
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
return MediaController.getCurrentPlayer();
|
||||
}
|
||||
|
||||
Events.on(document, 'thememediadownload', ".libraryPage", function (e, themeMediaResult) {
|
||||
Events.on(document, 'thememediadownload', function (e, themeMediaResult) {
|
||||
|
||||
if (!enabled()) {
|
||||
return;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.viewMenuBar, .libraryViewNav:not(.paperLibraryViewNav), paper-tabs {
|
||||
background-color: #1d1d1d;
|
||||
background-color: #1b1b1b;
|
||||
}
|
||||
|
||||
.viewMenuBar.semiTransparent {
|
||||
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
|
||||
.background-theme-b {
|
||||
background-color: #2d2d2d;
|
||||
background-color: #2b2b2b;
|
||||
}
|
||||
|
||||
.backdropContainer .pageBackground {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue