mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
resolve wtv transcoding
This commit is contained in:
parent
2a8364b21c
commit
8c65052f02
8 changed files with 66 additions and 27 deletions
|
@ -1,6 +1,6 @@
|
|||
var LibraryBrowser = (function (window, document, $, screen, store) {
|
||||
|
||||
var pageSizeKey = 'pagesize_v2';
|
||||
var pageSizeKey = 'pagesize_v3';
|
||||
|
||||
$(function () {
|
||||
$("body").on("create", function () {
|
||||
|
@ -11,18 +11,26 @@
|
|||
var defaultBackground = "#333";
|
||||
|
||||
return {
|
||||
getDefaultPageSize: function () {
|
||||
getDefaultPageSize: function (key, defaultValue) {
|
||||
|
||||
var saved = store.getItem(pageSizeKey);
|
||||
var saved = store.getItem(key || pageSizeKey);
|
||||
|
||||
if (saved) {
|
||||
return parseInt(saved);
|
||||
}
|
||||
|
||||
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
|
||||
return 100;
|
||||
if (defaultValue) {
|
||||
return defaultValue;
|
||||
}
|
||||
return 50;
|
||||
|
||||
// Chrome seems to have virtualization built-in and can handle large lists easily
|
||||
var isChrome = $.browser.chrome;
|
||||
|
||||
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
|
||||
return isChrome ? 200 : 100;
|
||||
}
|
||||
|
||||
return isChrome ? 100 : 50;
|
||||
},
|
||||
|
||||
getDefaultItemsView: function (view, mobileView) {
|
||||
|
@ -1633,7 +1641,7 @@
|
|||
|
||||
if (limit && options.updatePageSizeSetting !== false) {
|
||||
try {
|
||||
store.setItem(pageSizeKey, limit);
|
||||
store.setItem(options.pageSizeKey || pageSizeKey, limit);
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue