mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added default padding settings
This commit is contained in:
parent
66df4658eb
commit
dbf4cb3d23
25 changed files with 102 additions and 122 deletions
|
@ -611,30 +611,10 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemOverview {
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
max-height: 100px;
|
|
||||||
padding-right: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.desktopOverview {
|
|
||||||
min-width: 500px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobileOverview {
|
|
||||||
display: none;
|
|
||||||
padding: 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.empty {
|
.empty {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobileGenres {
|
|
||||||
display: none;
|
|
||||||
padding: 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.darkScrollbars ::-webkit-scrollbar {
|
.darkScrollbars ::-webkit-scrollbar {
|
||||||
width: 10px;
|
width: 10px;
|
||||||
height: 10px;
|
height: 10px;
|
||||||
|
@ -865,14 +845,6 @@ span.itemCommunityRating:not(:empty) + .userDataIcons {
|
||||||
max-width: 120px;
|
max-width: 120px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mobileOverview:not(.hide), .mobileGenres {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.desktopOverview, .desktopGenres {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.inlineItemName {
|
.inlineItemName {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
<p id="itemDeathDate"></p>
|
<p id="itemDeathDate"></p>
|
||||||
<p id="seriesAirTime"></p>
|
<p id="seriesAirTime"></p>
|
||||||
<p class="airDate"></p>
|
<p class="airDate"></p>
|
||||||
<p class="itemOverview smoothScrollY"></p>
|
<p class="itemOverview topOverview"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="collectionItems"></div>
|
<div class="collectionItems"></div>
|
||||||
<div id="childrenCollapsible" class="hide detailSection">
|
<div id="childrenCollapsible" class="hide detailSection">
|
||||||
|
@ -177,6 +177,7 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
<div class="tabDetails">
|
<div class="tabDetails">
|
||||||
|
<p class="itemOverview bottomOverview"></p>
|
||||||
<p id="players"></p>
|
<p id="players"></p>
|
||||||
<p class="itemExternalLinks"></p>
|
<p class="itemExternalLinks"></p>
|
||||||
<p class="itemStudios"></p>
|
<p class="itemStudios"></p>
|
||||||
|
|
|
@ -35,12 +35,12 @@
|
||||||
<div class="activeProgramItems itemsContainer"></div>
|
<div class="activeProgramItems itemsContainer"></div>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="upcomingPrograms" class="homePageSection">
|
<div id="upcomingPrograms" class="homePageSection" style="margin-top:1em;">
|
||||||
<h1 class="listHeader">${HeaderUpcomingPrograms}</h1>
|
<h1 class="listHeader">${HeaderUpcomingPrograms}</h1>
|
||||||
<div class="upcomingProgramItems itemsContainer"></div>
|
<div class="upcomingProgramItems itemsContainer"></div>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="upcomingTvMovies" class="homePageSection">
|
<div id="upcomingTvMovies" class="homePageSection" style="margin-top:1em;">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingMovies}</h1>
|
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingMovies}</h1>
|
||||||
<a href="livetvitems.html?type=movies" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
<a href="livetvitems.html?type=movies" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
<div class="upcomingTvMovieItems itemsContainer"></div>
|
<div class="upcomingTvMovieItems itemsContainer"></div>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="upcomingSports" class="homePageSection">
|
<div id="upcomingSports" class="homePageSection" style="margin-top:1em;">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingSports}</h1>
|
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingSports}</h1>
|
||||||
<a href="livetvitems.html?type=sports" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
<a href="livetvitems.html?type=sports" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
<div class="upcomingSportsItems itemsContainer"></div>
|
<div class="upcomingSportsItems itemsContainer"></div>
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="upcomingKids" class="homePageSection">
|
<div id="upcomingKids" class="homePageSection" style="margin-top:1em;">
|
||||||
<div>
|
<div>
|
||||||
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingForKids}</h1>
|
<h1 class="listHeader" style="display:inline-block;vertical-align:middle;">${HeaderUpcomingForKids}</h1>
|
||||||
<a href="livetvitems.html?type=kids" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
<a href="livetvitems.html?type=kids" class="clearLink" style="margin-left:1em;vertical-align:middle;"><paper-button raised class="more mini noIcon">${ButtonMoreItems}</paper-button></a>
|
||||||
|
|
|
@ -58,15 +58,9 @@
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPrePaddingRequired">${OptionPrePaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPostPaddingRequired">${OptionPostPaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -53,15 +53,9 @@
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPrePaddingRequired">${OptionPrePaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPostPaddingRequired">${OptionPostPaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -58,6 +58,18 @@
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
|
<div>
|
||||||
|
<h1>${HeaderDefaultPadding}</h1>
|
||||||
|
<div>
|
||||||
|
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
<ul data-role="listview" class="ulForm">
|
<ul data-role="listview" class="ulForm">
|
||||||
<li>
|
<li>
|
||||||
<button type="submit" data-role="none" class="clearButton">
|
<button type="submit" data-role="none" class="clearButton">
|
||||||
|
|
|
@ -41,15 +41,9 @@
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPrePaddingRequired">${OptionPrePaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
<paper-input type="number" id="txtPostPaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPostPaddingMinutes}"></paper-input>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<paper-checkbox id="chkPostPaddingRequired">${OptionPostPaddingRequired}</paper-checkbox>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
currentGroupName = dateText;
|
currentGroupName = dateText;
|
||||||
currentGroup = [];
|
currentGroup = [item];
|
||||||
} else {
|
} else {
|
||||||
currentGroup.push(item);
|
currentGroup.push(item);
|
||||||
}
|
}
|
||||||
|
|
|
@ -250,6 +250,11 @@
|
||||||
LibraryBrowser.renderDetailImage(page.querySelector('.detailImageContainer'), item, imageHref);
|
LibraryBrowser.renderDetailImage(page.querySelector('.detailImageContainer'), item, imageHref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function refreshImage(page, item, user) {
|
||||||
|
|
||||||
|
LibraryBrowser.refreshDetailImageUserData(page.querySelector('.detailImageContainer'), item);
|
||||||
|
}
|
||||||
|
|
||||||
function onWebSocketMessage(e, data) {
|
function onWebSocketMessage(e, data) {
|
||||||
|
|
||||||
var msg = data;
|
var msg = data;
|
||||||
|
@ -272,7 +277,7 @@
|
||||||
|
|
||||||
Dashboard.getCurrentUser().done(function (user) {
|
Dashboard.getCurrentUser().done(function (user) {
|
||||||
|
|
||||||
renderImage(page, currentItem, user);
|
refreshImage(page, currentItem, user);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -401,7 +406,18 @@
|
||||||
$('.tagline', page).hide();
|
$('.tagline', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
LibraryBrowser.renderOverview(page.querySelectorAll('.itemOverview'), item);
|
var topOverview = page.querySelector('.topOverview');
|
||||||
|
var bottomOverview = page.querySelector('.bottomOverview');
|
||||||
|
|
||||||
|
if (item.Type == 'MusicAlbum' || item.Type == 'MusicArtist') {
|
||||||
|
LibraryBrowser.renderOverview([bottomOverview], item);
|
||||||
|
topOverview.classList.add('hide');
|
||||||
|
bottomOverview.classList.remove('hide');
|
||||||
|
} else {
|
||||||
|
LibraryBrowser.renderOverview([topOverview], item);
|
||||||
|
topOverview.classList.remove('hide');
|
||||||
|
bottomOverview.classList.add('hide');
|
||||||
|
}
|
||||||
|
|
||||||
$('.itemCommunityRating', page).html(LibraryBrowser.getRatingHtml(item));
|
$('.itemCommunityRating', page).html(LibraryBrowser.getRatingHtml(item));
|
||||||
|
|
||||||
|
@ -830,7 +846,6 @@
|
||||||
showTitle: false,
|
showTitle: false,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
context: context,
|
context: context,
|
||||||
overlayText: true,
|
|
||||||
lazy: true
|
lazy: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -2890,11 +2890,11 @@
|
||||||
|
|
||||||
var progressHtml = item.IsFolder || !item.UserData ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData));
|
var progressHtml = item.IsFolder || !item.UserData ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData));
|
||||||
|
|
||||||
|
html += '<div class="detailImageProgressContainer">';
|
||||||
if (progressHtml) {
|
if (progressHtml) {
|
||||||
html += '<div class="detailImageProgressContainer">';
|
|
||||||
html += progressHtml;
|
html += progressHtml;
|
||||||
html += "</div>";
|
|
||||||
}
|
}
|
||||||
|
html += "</div>";
|
||||||
|
|
||||||
html += "</div>";
|
html += "</div>";
|
||||||
|
|
||||||
|
@ -2918,6 +2918,15 @@
|
||||||
ImageLoader.lazyChildren(elem);
|
ImageLoader.lazyChildren(elem);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
refreshDetailImageUserData: function (elem, item) {
|
||||||
|
|
||||||
|
var progressHtml = item.IsFolder || !item.UserData ? '' : LibraryBrowser.getItemProgressBarHtml((item.Type == 'Recording' ? item : item.UserData));
|
||||||
|
|
||||||
|
var detailImageProgressContainer = elem.querySelector('.detailImageProgressContainer');
|
||||||
|
|
||||||
|
detailImageProgressContainer.innerHTML = progressHtml || '';
|
||||||
|
},
|
||||||
|
|
||||||
getDisplayTime: function (date) {
|
getDisplayTime: function (date) {
|
||||||
|
|
||||||
if ((typeof date).toString().toLowerCase() === 'string') {
|
if ((typeof date).toString().toLowerCase() === 'string') {
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
if (view == "Poster") {
|
if (view == "Poster") {
|
||||||
html = LibraryBrowser.getPosterViewHtml({
|
html = LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "auto",
|
shape: query.IsMovie ? 'portrait' : "auto",
|
||||||
context: 'livetv',
|
context: 'livetv',
|
||||||
showTitle: false,
|
showTitle: false,
|
||||||
centerText: true,
|
centerText: true,
|
||||||
|
|
|
@ -63,8 +63,6 @@
|
||||||
|
|
||||||
$('#txtPrePaddingMinutes', page).val(defaultTimer.PrePaddingSeconds / 60);
|
$('#txtPrePaddingMinutes', page).val(defaultTimer.PrePaddingSeconds / 60);
|
||||||
$('#txtPostPaddingMinutes', page).val(defaultTimer.PostPaddingSeconds / 60);
|
$('#txtPostPaddingMinutes', page).val(defaultTimer.PostPaddingSeconds / 60);
|
||||||
$('#chkPrePaddingRequired', page).checked(defaultTimer.IsPrePaddingRequired);
|
|
||||||
$('#chkPostPaddingRequired', page).checked(defaultTimer.IsPostPaddingRequired);
|
|
||||||
|
|
||||||
if (program.IsSeries) {
|
if (program.IsSeries) {
|
||||||
$('#eligibleForSeriesFields', page).show();
|
$('#eligibleForSeriesFields', page).show();
|
||||||
|
@ -148,8 +146,6 @@
|
||||||
|
|
||||||
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
||||||
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
||||||
item.IsPrePaddingRequired = $('#chkPrePaddingRequired', form).checked();
|
|
||||||
item.IsPostPaddingRequired = $('#chkPostPaddingRequired', form).checked();
|
|
||||||
|
|
||||||
item.RecordNewOnly = $('#chkNewOnly', form).checked();
|
item.RecordNewOnly = $('#chkNewOnly', form).checked();
|
||||||
item.RecordAnyChannel = $('#chkAllChannels', form).checked();
|
item.RecordAnyChannel = $('#chkAllChannels', form).checked();
|
||||||
|
|
|
@ -29,8 +29,6 @@
|
||||||
|
|
||||||
$('#txtPrePaddingMinutes', page).val(item.PrePaddingSeconds / 60);
|
$('#txtPrePaddingMinutes', page).val(item.PrePaddingSeconds / 60);
|
||||||
$('#txtPostPaddingMinutes', page).val(item.PostPaddingSeconds / 60);
|
$('#txtPostPaddingMinutes', page).val(item.PostPaddingSeconds / 60);
|
||||||
$('#chkPrePaddingRequired', page).checked(item.IsPrePaddingRequired);
|
|
||||||
$('#chkPostPaddingRequired', page).checked(item.IsPostPaddingRequired);
|
|
||||||
|
|
||||||
$('#chkNewOnly', page).checked(item.RecordNewOnly);
|
$('#chkNewOnly', page).checked(item.RecordNewOnly);
|
||||||
$('#chkAllChannels', page).checked(item.RecordAnyChannel);
|
$('#chkAllChannels', page).checked(item.RecordAnyChannel);
|
||||||
|
@ -109,8 +107,6 @@
|
||||||
|
|
||||||
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
||||||
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
||||||
item.IsPrePaddingRequired = $('#chkPrePaddingRequired', form).checked();
|
|
||||||
item.IsPostPaddingRequired = $('#chkPostPaddingRequired', form).checked();
|
|
||||||
|
|
||||||
item.RecordNewOnly = $('#chkNewOnly', form).checked();
|
item.RecordNewOnly = $('#chkNewOnly', form).checked();
|
||||||
item.RecordAnyChannel = $('#chkAllChannels', form).checked();
|
item.RecordAnyChannel = $('#chkAllChannels', form).checked();
|
||||||
|
@ -135,7 +131,7 @@
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "detailPageSquare",
|
shape: "detailPageSquare",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
overlayText: true,
|
centerText: true,
|
||||||
coverImage: true
|
coverImage: true
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -12,6 +12,9 @@
|
||||||
|
|
||||||
$('#txtRecordingPath', page).val(config.RecordingPath || '');
|
$('#txtRecordingPath', page).val(config.RecordingPath || '');
|
||||||
|
|
||||||
|
$('#txtPrePaddingMinutes', page).val(config.PrePaddingSeconds / 60);
|
||||||
|
$('#txtPostPaddingMinutes', page).val(config.PostPaddingSeconds / 60);
|
||||||
|
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,6 +31,9 @@
|
||||||
config.EnableAutoOrganize = $('#chkOrganize', form).checked();
|
config.EnableAutoOrganize = $('#chkOrganize', form).checked();
|
||||||
config.RecordingPath = $('#txtRecordingPath', form).val() || null;
|
config.RecordingPath = $('#txtRecordingPath', form).val() || null;
|
||||||
|
|
||||||
|
config.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
||||||
|
config.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
||||||
|
|
||||||
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
ApiClient.updateNamedConfiguration("livetv", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -360,7 +360,7 @@
|
||||||
switch (providerId) {
|
switch (providerId) {
|
||||||
|
|
||||||
case 'm3u':
|
case 'm3u':
|
||||||
return 'M3U';
|
return 'M3U Playlist';
|
||||||
case 'hdhomerun':
|
case 'hdhomerun':
|
||||||
return 'HDHomerun';
|
return 'HDHomerun';
|
||||||
default:
|
default:
|
||||||
|
@ -436,7 +436,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
name: 'M3U',
|
name: getTunerName('m3u'),
|
||||||
id: 'm3u'
|
id: 'm3u'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
shape: "auto",
|
shape: "auto",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
overlayText: true,
|
centerText: true,
|
||||||
coverImage: true,
|
coverImage: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayPlayButton: true
|
overlayPlayButton: true
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
shape: "auto",
|
shape: "auto",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
overlayText: true,
|
centerText: true,
|
||||||
coverImage: true,
|
coverImage: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayMoreButton: true
|
overlayMoreButton: true
|
||||||
|
@ -75,15 +75,16 @@
|
||||||
userId: Dashboard.getCurrentUserId(),
|
userId: Dashboard.getCurrentUserId(),
|
||||||
IsAiring: false,
|
IsAiring: false,
|
||||||
HasAired: false,
|
HasAired: false,
|
||||||
limit: 8,
|
limit: 9,
|
||||||
IsMovie: true
|
IsMovie: true
|
||||||
|
|
||||||
}).done(function (result) {
|
}).done(function (result) {
|
||||||
|
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "auto",
|
shape: "portrait",
|
||||||
showTitle: false,
|
showTitle: true,
|
||||||
|
centerText: true,
|
||||||
coverImage: true,
|
coverImage: true,
|
||||||
overlayText: false,
|
overlayText: false,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
|
@ -108,7 +109,8 @@
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "auto",
|
shape: "auto",
|
||||||
showTitle: false,
|
showTitle: true,
|
||||||
|
centerText: true,
|
||||||
coverImage: true,
|
coverImage: true,
|
||||||
overlayText: false,
|
overlayText: false,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
|
@ -133,7 +135,8 @@
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "auto",
|
shape: "auto",
|
||||||
showTitle: false,
|
showTitle: true,
|
||||||
|
centerText: true,
|
||||||
coverImage: true,
|
coverImage: true,
|
||||||
overlayText: false,
|
overlayText: false,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
|
|
|
@ -56,8 +56,6 @@
|
||||||
|
|
||||||
$('#txtPrePaddingMinutes', page).val(item.PrePaddingSeconds / 60);
|
$('#txtPrePaddingMinutes', page).val(item.PrePaddingSeconds / 60);
|
||||||
$('#txtPostPaddingMinutes', page).val(item.PostPaddingSeconds / 60);
|
$('#txtPostPaddingMinutes', page).val(item.PostPaddingSeconds / 60);
|
||||||
$('#chkPrePaddingRequired', page).checked(item.IsPrePaddingRequired);
|
|
||||||
$('#chkPostPaddingRequired', page).checked(item.IsPostPaddingRequired);
|
|
||||||
|
|
||||||
if (item.Status == 'New') {
|
if (item.Status == 'New') {
|
||||||
$('.timerStatus', page).hide();
|
$('.timerStatus', page).hide();
|
||||||
|
@ -78,8 +76,6 @@
|
||||||
|
|
||||||
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
|
||||||
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
item.PostPaddingSeconds = $('#txtPostPaddingMinutes', form).val() * 60;
|
||||||
item.IsPrePaddingRequired = $('#chkPrePaddingRequired', form).checked();
|
|
||||||
item.IsPostPaddingRequired = $('#chkPostPaddingRequired', form).checked();
|
|
||||||
|
|
||||||
ApiClient.updateLiveTvTimer(item).done(function () {
|
ApiClient.updateLiveTvTimer(item).done(function () {
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
|
|
|
@ -76,7 +76,6 @@
|
||||||
shape: "backdrop",
|
shape: "backdrop",
|
||||||
preferThumb: true,
|
preferThumb: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayText: true,
|
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -117,7 +116,6 @@
|
||||||
shape: "portrait",
|
shape: "portrait",
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayText: true,
|
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,7 +191,6 @@
|
||||||
shape: getPortraitShape(),
|
shape: getPortraitShape(),
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true,
|
||||||
overlayText: true,
|
|
||||||
showDetailsMenu: true
|
showDetailsMenu: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,16 +108,16 @@
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderPlugins(page, plugins) {
|
function renderPlugins(page, plugins, showNoPluginsMessage) {
|
||||||
|
|
||||||
ApiClient.getJSON(ApiClient.getUrl("dashboard/configurationpages") + "?pageType=PluginConfiguration").done(function (configPages) {
|
ApiClient.getJSON(ApiClient.getUrl("dashboard/configurationpages") + "?pageType=PluginConfiguration").done(function (configPages) {
|
||||||
|
|
||||||
populateList(page, plugins, configPages);
|
populateList(page, plugins, configPages, showNoPluginsMessage);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function populateList(page, plugins, pluginConfigurationPages) {
|
function populateList(page, plugins, pluginConfigurationPages, showNoPluginsMessage) {
|
||||||
|
|
||||||
plugins = plugins.sort(function (plugin1, plugin2) {
|
plugins = plugins.sort(function (plugin1, plugin2) {
|
||||||
|
|
||||||
|
@ -132,12 +132,14 @@
|
||||||
|
|
||||||
if (!plugins.length) {
|
if (!plugins.length) {
|
||||||
|
|
||||||
html += '<div style="padding:5px;">';
|
if (showNoPluginsMessage) {
|
||||||
html += '<p>' + Globalize.translate('MessageNoPluginsInstalled') + '</p>';
|
html += '<div style="padding:5px;">';
|
||||||
html += '<p><a href="plugincatalog.html">';
|
html += '<p>' + Globalize.translate('MessageNoPluginsInstalled') + '</p>';
|
||||||
html += Globalize.translate('BrowsePluginCatalogMessage');
|
html += '<p><a href="plugincatalog.html">';
|
||||||
html += '</a></p>';
|
html += Globalize.translate('BrowsePluginCatalogMessage');
|
||||||
html += '</div>';
|
html += '</a></p>';
|
||||||
|
html += '</div>';
|
||||||
|
}
|
||||||
|
|
||||||
$('.installedPlugins', page).html(html).trigger('create');
|
$('.installedPlugins', page).html(html).trigger('create');
|
||||||
} else {
|
} else {
|
||||||
|
@ -213,7 +215,7 @@
|
||||||
|
|
||||||
ApiClient.getInstalledPlugins().done(function (plugins) {
|
ApiClient.getInstalledPlugins().done(function (plugins) {
|
||||||
|
|
||||||
renderPlugins(page, plugins);
|
renderPlugins(page, plugins, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,8 +121,7 @@
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "auto",
|
shape: "auto",
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true
|
||||||
overlayText: true
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (query.IncludeItemTypes == "MusicAlbum") {
|
if (query.IncludeItemTypes == "MusicAlbum") {
|
||||||
|
|
|
@ -483,42 +483,37 @@ var Dashboard = {
|
||||||
|
|
||||||
console.log('showLoadingMsg');
|
console.log('showLoadingMsg');
|
||||||
|
|
||||||
require(['paperbuttonstyle'], function () {
|
var elem = document.querySelector('.docspinner');
|
||||||
var elem = document.querySelector('.docspinner');
|
|
||||||
|
|
||||||
if (elem) {
|
if (elem) {
|
||||||
|
|
||||||
// This is just an attempt to prevent the fade-in animation from running repeating and causing flickering
|
// This is just an attempt to prevent the fade-in animation from running repeating and causing flickering
|
||||||
elem.active = true;
|
elem.active = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
elem = document.createElement("paper-spinner");
|
elem = document.createElement("paper-spinner");
|
||||||
elem.classList.add('docspinner');
|
elem.classList.add('docspinner');
|
||||||
|
|
||||||
document.body.appendChild(elem);
|
document.body.appendChild(elem);
|
||||||
elem.active = true;
|
elem.active = true;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
hideLoadingMsg: function () {
|
hideLoadingMsg: function () {
|
||||||
|
|
||||||
console.log('hideLoadingMsg');
|
console.log('hideLoadingMsg');
|
||||||
|
|
||||||
require(['paperbuttonstyle'], function () {
|
var elem = document.querySelector('.docspinner');
|
||||||
|
|
||||||
var elem = document.querySelector('.docspinner');
|
if (elem) {
|
||||||
|
|
||||||
if (elem) {
|
elem.active = false;
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
elem.active = false;
|
elem.active = false;
|
||||||
|
}, 100);
|
||||||
setTimeout(function () {
|
}
|
||||||
elem.active = false;
|
|
||||||
}, 100);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getModalLoadingMsg: function () {
|
getModalLoadingMsg: function () {
|
||||||
|
|
|
@ -67,8 +67,7 @@
|
||||||
shape: "backdrop",
|
shape: "backdrop",
|
||||||
preferThumb: true,
|
preferThumb: true,
|
||||||
context: 'tv',
|
context: 'tv',
|
||||||
lazy: true,
|
lazy: true
|
||||||
overlayText: true
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -123,8 +122,7 @@
|
||||||
shape: "portrait",
|
shape: "portrait",
|
||||||
context: 'tv',
|
context: 'tv',
|
||||||
centerText: true,
|
centerText: true,
|
||||||
lazy: true,
|
lazy: true
|
||||||
overlayText: true
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
currentGroupName = dateText;
|
currentGroupName = dateText;
|
||||||
currentGroup = [];
|
currentGroup = [item];
|
||||||
} else {
|
} else {
|
||||||
currentGroup.push(item);
|
currentGroup.push(item);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1532,5 +1532,6 @@
|
||||||
"HeaderSetupTVGuide": "Setup TV Guide",
|
"HeaderSetupTVGuide": "Setup TV Guide",
|
||||||
"LabelDataProvider": "Data provider:",
|
"LabelDataProvider": "Data provider:",
|
||||||
"OptionSendRecordingsToAutoOrganize": "Enable Auto-Organize for new recordings",
|
"OptionSendRecordingsToAutoOrganize": "Enable Auto-Organize for new recordings",
|
||||||
"OptionSendRecordingsToAutoOrganizeHelp": "New recordings will be sent to the Auto-Organize feature and imported into your media library."
|
"OptionSendRecordingsToAutoOrganizeHelp": "New recordings will be sent to the Auto-Organize feature and imported into your media library.",
|
||||||
|
"HeaderDefaultPadding": "Default Padding"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue