mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 18:38:25 -07:00
Merge pull request #4262 from hannesbraun/limit-parallel-image-encoding
Add setting for ParallelImageEncodingLimit
This commit is contained in:
commit
71fa8d897f
@ -80,6 +80,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="verticalSection">
|
||||
<h2>${HeaderPerformance}</h2>
|
||||
<div class="inputContainer">
|
||||
<input is="emby-input" id="txtParallelImageEncodingLimit" label="${LabelParallelImageEncodingLimit}" type="number" pattern="[0-9]*" min="0" step="1" />
|
||||
<div class="fieldDescription">${LabelParallelImageEncodingLimitHelp}</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
<button is="emby-button" type="submit" class="raised button-submit block">
|
||||
|
@ -21,6 +21,7 @@ import alert from '../../components/alert';
|
||||
$('#selectLocalizationLanguage', page).html(languageOptions.map(function (language) {
|
||||
return '<option value="' + language.Value + '">' + language.Name + '</option>';
|
||||
})).val(config.UICulture);
|
||||
page.querySelector('#txtParallelImageEncodingLimit').value = config.ParallelImageEncodingLimit || '';
|
||||
|
||||
loading.hide();
|
||||
}
|
||||
@ -36,6 +37,7 @@ import alert from '../../components/alert';
|
||||
config.MetadataPath = $('#txtMetadataPath', form).val();
|
||||
config.MetadataNetworkPath = $('#txtMetadataNetworkPath', form).val();
|
||||
config.QuickConnectAvailable = form.querySelector('#chkQuickConnectAvailable').checked;
|
||||
config.ParallelImageEncodingLimit = parseInt(form.querySelector('#txtParallelImageEncodingLimit').value || '0', 10);
|
||||
|
||||
ApiClient.updateServerConfiguration(config).then(function() {
|
||||
ApiClient.getNamedConfiguration(brandingConfigKey).then(function(brandingConfig) {
|
||||
|
@ -420,6 +420,7 @@
|
||||
"HeaderPassword": "Password",
|
||||
"HeaderPasswordReset": "Password Reset",
|
||||
"HeaderPaths": "Paths",
|
||||
"HeaderPerformance": "Performance",
|
||||
"HeaderPhotoAlbums": "Photo Albums",
|
||||
"HeaderPinCodeReset": "Reset Easy PIN Code",
|
||||
"HeaderPlayAll": "Play All",
|
||||
@ -791,6 +792,8 @@
|
||||
"LabelOriginalName": "Original name:",
|
||||
"LabelOriginalTitle": "Original title:",
|
||||
"LabelOverview": "Overview:",
|
||||
"LabelParallelImageEncodingLimit": "Parallel image encoding limit",
|
||||
"LabelParallelImageEncodingLimitHelp": "Maximum amount of image encodings that are allowed to run in parallel. Setting this to 0 will choose a limit based on your system specs.",
|
||||
"LabelParentalRating": "Parental rating:",
|
||||
"LabelParentNumber": "Parent number:",
|
||||
"LabelPassword": "Password:",
|
||||
|
Loading…
Reference in New Issue
Block a user