mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added sync cpu settings
This commit is contained in:
parent
3d8fc04db3
commit
1a57e3d12f
3 changed files with 22 additions and 4 deletions
|
@ -353,10 +353,6 @@
|
|||
width: 14.285714285714285714285714285714%;
|
||||
}
|
||||
|
||||
.backdropCard {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.portraitCard {
|
||||
width: 14.285714285714285714285714285714%;
|
||||
}
|
||||
|
@ -380,6 +376,10 @@
|
|||
.smallBackdropCard {
|
||||
width: 12.5%;
|
||||
}
|
||||
|
||||
.backdropCard {
|
||||
width: 20%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -4,6 +4,8 @@
|
|||
|
||||
$('#txtSyncTempPath', page).val(config.TemporaryPath || '');
|
||||
$('#txtUploadSpeedLimit', page).val(config.UploadSpeedLimitBytes / 1000000);
|
||||
$('#txtCpuCoreLimit', page).val(config.TranscodingCpuCoreLimit);
|
||||
$('#chkEnableFullSpeedConversion', page).checked(config.EnableFullSpeedTranscoding).checkboxradio('refresh');
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
@ -53,6 +55,8 @@
|
|||
|
||||
config.TemporaryPath = $('#txtSyncTempPath', form).val();
|
||||
config.UploadSpeedLimitBytes = parseInt(parseFloat(($('#txtUploadSpeedLimit', form).val() || '0')) * 1000000);
|
||||
config.TranscodingCpuCoreLimit = parseInt($('#txtCpuCoreLimit', form).val());
|
||||
config.EnableFullSpeedTranscoding = $('#chkEnableFullSpeedConversion', form).checked();
|
||||
|
||||
ApiClient.updateNamedConfiguration("sync", config).done(Dashboard.processServerConfigurationUpdateResult);
|
||||
});
|
||||
|
|
|
@ -32,6 +32,20 @@
|
|||
<label for="txtUploadRateLimit">${LabelUploadSpeedLimit}</label>
|
||||
<input type="number" id="txtUploadSpeedLimit" min="0" step=".5" required="required" />
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtCpuCoreLimit">${LabelConversionCpuCoreLimit}</label>
|
||||
<input type="number" id="txtCpuCoreLimit" min="0" max="8" step="1" required="required" />
|
||||
<div class="fieldDescription">
|
||||
${LabelConversionCpuCoreLimitHelp}
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="chkEnableFullSpeedConversion">${OptionEnableFullSpeedConversion}</label>
|
||||
<input type="checkbox" id="chkEnableFullSpeedConversion" />
|
||||
<div class="fieldDescription">
|
||||
${OptionEnableFullSpeedConversionHelp}
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul data-role="listview" class="ulForm">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue