mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
limit ifo's to 300mb+
This commit is contained in:
parent
45bcd1b40a
commit
4ab95b6e11
@ -12,7 +12,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="editPageInnerContent">
|
||||
<div class="editPageInnerContent" style="display: none;">
|
||||
<h1 class="itemName editPageName"> </h1>
|
||||
<br />
|
||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div id="divUsers"></div>
|
||||
|
||||
<p class="localhostMessage" style="text-align: center; display: none;">Passwords are not required when logging in from localhost.</p>
|
||||
<p style="text-align: center;"><a onclick="$('.manualLoginForm').show();$('.visualLoginForm').hide();" href="#">Manual Login</a></p>
|
||||
<p style="text-align: center;"><a onclick="$('.manualLoginForm').show();$('.visualLoginForm').hide();$('#txtManualName').focus();" href="#">Manual Login</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -67,7 +67,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<fieldset data-role="controlgroup" style="border-bottom: 1px solid #ddd;">
|
||||
<fieldset class="imageSelections" data-role="controlgroup" style="border-bottom: 1px solid #ddd;">
|
||||
<legend>Fetch Images:</legend>
|
||||
<div class="imageType" data-imagetype="Primary" style="display: none;">
|
||||
<input type="checkbox" data-mini="true" id="chkDownloadPrimary" name="chkDownloadPrimary" />
|
||||
|
@ -71,6 +71,8 @@
|
||||
/* media contents from JSON */
|
||||
this.mediaContents = null;
|
||||
|
||||
this.hasReceivers = false;
|
||||
|
||||
this.initializeCastPlayer();
|
||||
};
|
||||
|
||||
@ -146,9 +148,13 @@
|
||||
CastPlayer.prototype.receiverListener = function (e) {
|
||||
if (e === 'available') {
|
||||
console.log("receiver found");
|
||||
$('.btnCast').show();
|
||||
this.hasReceivers = true;
|
||||
}
|
||||
else {
|
||||
console.log("receiver list empty");
|
||||
$('.btnCast').hide();
|
||||
this.hasReceivers = false;
|
||||
}
|
||||
};
|
||||
|
||||
@ -185,7 +191,7 @@
|
||||
Dashboard.alert({
|
||||
|
||||
title: "Error Launching Chromecast",
|
||||
message: "There was an error launching chromecast. Please ensure your device is connected to your wiki network."
|
||||
message: "There was an error launching chromecast. Please ensure your device is connected to your wifi network."
|
||||
|
||||
});
|
||||
};
|
||||
@ -211,8 +217,8 @@
|
||||
this.updateDisplayMessage();
|
||||
|
||||
// continue to play media locally
|
||||
console.log("current time: " + this.currentMediaTime);
|
||||
this.playMediaLocally(this.currentMediaTime);
|
||||
//console.log("current time: " + this.currentMediaTime);
|
||||
//this.playMediaLocally(this.currentMediaTime);
|
||||
this.updateMediaControlUI();
|
||||
};
|
||||
|
||||
@ -692,7 +698,10 @@
|
||||
$('.btnCast').hide();
|
||||
return;
|
||||
}
|
||||
$('.btnCast').show();
|
||||
|
||||
if (this.hasReceivers) {
|
||||
$('.btnCast').show();
|
||||
}
|
||||
|
||||
if (this.deviceState == DEVICE_STATE.ACTIVE) {
|
||||
$('.btnCast').removeClass('btnDefaultCast').addClass('btnActiveCast');
|
||||
|
@ -31,6 +31,15 @@
|
||||
$.when(promise1, promise2, promise3).done(function (response1, response2, response3) {
|
||||
|
||||
var item = response1[0];
|
||||
|
||||
currentItem = item;
|
||||
|
||||
if (item.Type == "UserRootFolder") {
|
||||
$('.editPageInnerContent', page).hide();
|
||||
return;
|
||||
} else {
|
||||
$('.editPageInnerContent', page).show();
|
||||
}
|
||||
var languages = response2[0];
|
||||
var countries = response3[0];
|
||||
|
||||
@ -53,8 +62,6 @@
|
||||
|
||||
$('#refreshLoading', page).hide();
|
||||
|
||||
currentItem = item;
|
||||
|
||||
if (item.Type != "Channel" &&
|
||||
item.Type != "Genre" &&
|
||||
item.Type != "Studio" &&
|
||||
|
@ -1,15 +1,28 @@
|
||||
var LoginPage = {
|
||||
|
||||
onPageInit: function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$("#popupLogin", page).popup({
|
||||
afteropen: function (event, ui) {
|
||||
$('#pw').focus();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
onPageShow: function () {
|
||||
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var page = this;
|
||||
|
||||
var isLocalhost = window.location.toString().toLowerCase().indexOf('localhost') != -1;
|
||||
|
||||
|
||||
if (isLocalhost) {
|
||||
$('.localhostMessage', this).show();
|
||||
$('.localhostMessage', page).show();
|
||||
} else {
|
||||
$('.localhostMessage', this).hide();
|
||||
$('.localhostMessage', page).hide();
|
||||
}
|
||||
|
||||
// Show all users on localhost
|
||||
@ -29,13 +42,14 @@
|
||||
|
||||
if (showManualForm) {
|
||||
|
||||
$('.visualLoginForm', '#loginPage').hide();
|
||||
$('#manualLoginForm', '#loginPage').show();
|
||||
$('.visualLoginForm', page).hide();
|
||||
$('#manualLoginForm', page).show();
|
||||
$('#txtManualName', page).focus();
|
||||
|
||||
} else {
|
||||
|
||||
$('.visualLoginForm', '#loginPage').show();
|
||||
$('#manualLoginForm', '#loginPage').hide();
|
||||
$('.visualLoginForm', page).show();
|
||||
$('#manualLoginForm', page).hide();
|
||||
|
||||
LoginPage.loadUserList(users);
|
||||
}
|
||||
@ -189,4 +203,4 @@
|
||||
}
|
||||
};
|
||||
|
||||
$(document).on('pageshow', "#loginPage", LoginPage.onPageShow);
|
||||
$(document).on('pageshow', "#loginPage", LoginPage.onPageShow).on('pageinit', "#loginPage", LoginPage.onPageInit);
|
||||
|
@ -411,38 +411,7 @@
|
||||
html += '</ul>';
|
||||
html += '<div class="fieldDescription">Rank your preferred local metadata sources in order of priority. The first file found will be read.</div>';
|
||||
|
||||
var elem = $('.metadataReaders', page).html(html).show().trigger('create');
|
||||
|
||||
$(elem).on('click', '.btnLocalReaderMove', function () {
|
||||
|
||||
var li = $(this).parents('.localReaderOption');
|
||||
var ul = li.parents('ul');
|
||||
|
||||
if ($(this).hasClass('btnLocalReaderDown')) {
|
||||
|
||||
var next = li.next();
|
||||
|
||||
li.remove().insertAfter(next);
|
||||
|
||||
} else {
|
||||
|
||||
var prev = li.prev();
|
||||
|
||||
li.remove().insertBefore(prev);
|
||||
}
|
||||
|
||||
$('.localReaderOption', ul).each(function () {
|
||||
|
||||
if ($(this).prev('.localReaderOption').length) {
|
||||
$('.btnLocalReaderMove', this).addClass('btnLocalReaderUp').removeClass('btnLocalReaderDown').attr('data-icon', 'arrow-u').removeClass('ui-icon-arrow-d').addClass('ui-icon-arrow-u');
|
||||
} else {
|
||||
$('.btnLocalReaderMove', this).addClass('btnLocalReaderDown').removeClass('btnLocalReaderUp').attr('data-icon', 'arrow-d').removeClass('ui-icon-arrow-u').addClass('ui-icon-arrow-d');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
ul.listview('destroy').listview({});
|
||||
});
|
||||
$('.metadataReaders', page).html(html).show().trigger('create');
|
||||
}
|
||||
|
||||
function loadPage(page) {
|
||||
@ -611,7 +580,42 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
$(document).on('pageshow', "#metadataImagesConfigurationPage", function () {
|
||||
$(document).on('pageinit', "#metadataImagesConfigurationPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
$('.metadataReaders', page).on('click', '.btnLocalReaderMove', function () {
|
||||
|
||||
var li = $(this).parents('.localReaderOption');
|
||||
var ul = li.parents('ul');
|
||||
|
||||
if ($(this).hasClass('btnLocalReaderDown')) {
|
||||
|
||||
var next = li.next();
|
||||
|
||||
li.remove().insertAfter(next);
|
||||
|
||||
} else {
|
||||
|
||||
var prev = li.prev();
|
||||
|
||||
li.remove().insertBefore(prev);
|
||||
}
|
||||
|
||||
$('.localReaderOption', ul).each(function () {
|
||||
|
||||
if ($(this).prev('.localReaderOption').length) {
|
||||
$('.btnLocalReaderMove', this).addClass('btnLocalReaderUp').removeClass('btnLocalReaderDown').attr('data-icon', 'arrow-u').removeClass('ui-icon-arrow-d').addClass('ui-icon-arrow-u');
|
||||
} else {
|
||||
$('.btnLocalReaderMove', this).addClass('btnLocalReaderDown').removeClass('btnLocalReaderUp').attr('data-icon', 'arrow-d').removeClass('ui-icon-arrow-u').addClass('ui-icon-arrow-d');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
ul.listview('destroy').listview({});
|
||||
});
|
||||
|
||||
}).on('pageshow', "#metadataImagesConfigurationPage", function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Movie",
|
||||
Limit: screenWidth >= 1440 ? 21 : 12,
|
||||
Limit: screenWidth >= 1920 ? 21 : (screenWidth >= 1440 ? 16 : 12),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
||||
Filters: "IsUnplayed"
|
||||
@ -57,13 +57,12 @@
|
||||
|
||||
});
|
||||
|
||||
|
||||
options = {
|
||||
|
||||
SortBy: "DateCreated",
|
||||
SortOrder: "Descending",
|
||||
IncludeItemTypes: "Trailer",
|
||||
Limit: screenWidth >= 1440 ? 7 : 6,
|
||||
Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 8 : 6),
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
|
||||
Filters: "IsUnplayed"
|
||||
|
@ -192,36 +192,9 @@ var Dashboard = {
|
||||
}
|
||||
}
|
||||
|
||||
if (isFirstLoad) {
|
||||
Dashboard.showFailedAssemblies(info.FailedPluginAssemblies);
|
||||
}
|
||||
|
||||
Dashboard.showInProgressInstallations(info.InProgressInstallations);
|
||||
},
|
||||
|
||||
showFailedAssemblies: function (failedAssemblies) {
|
||||
|
||||
for (var i = 0, length = failedAssemblies.length; i < length; i++) {
|
||||
|
||||
var assembly = failedAssemblies[i];
|
||||
|
||||
var html = '<img src="css/images/notifications/error.png" class="notificationIcon" />';
|
||||
|
||||
var index = assembly.lastIndexOf('\\');
|
||||
|
||||
if (index != -1) {
|
||||
assembly = assembly.substring(index + 1);
|
||||
}
|
||||
|
||||
html += '<span>';
|
||||
html += assembly + " failed to load.";
|
||||
html += '</span>';
|
||||
|
||||
Dashboard.showFooterNotification({ html: html });
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
showInProgressInstallations: function (installations) {
|
||||
|
||||
installations = installations || [];
|
||||
|
Loading…
Reference in New Issue
Block a user