mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2286 from Artiume/patch-6
This commit is contained in:
commit
b744fe4d74
3 changed files with 20 additions and 0 deletions
|
@ -17,6 +17,18 @@
|
|||
${LabelMaxResumePercentageHelp}
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputContainer">
|
||||
<input is="emby-input" type="number" id="txtMinAudiobookResume" name="txtMinAudiobookResume" pattern="[0-9]*" required min="0" max="100" label="${LabelMinAudiobookResume}"></input>
|
||||
<div class="fieldDescription">
|
||||
${LabelMinAudiobookResumeHelp}
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputContainer">
|
||||
<input is="emby-input" type="number" id="txtMaxAudiobookResume" name="txtMaxAudiobookResume" pattern="[0-9]*" required min="1" max="100" label="${LabelMaxAudiobookResume}"></input>
|
||||
<div class="fieldDescription">
|
||||
${LabelMaxAudiobookResumeHelp}
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputContainer">
|
||||
<input is="emby-input" type="number" id="txtMinResumeDuration" name="txtMinResumeDuration" pattern="[0-9]*" required min="0" label="${LabelMinResumeDuration}"></input>
|
||||
<div class="fieldDescription">
|
||||
|
|
|
@ -9,6 +9,8 @@ import Dashboard from '../../scripts/clientUtils';
|
|||
function loadPage(page, config) {
|
||||
$('#txtMinResumePct', page).val(config.MinResumePct);
|
||||
$('#txtMaxResumePct', page).val(config.MaxResumePct);
|
||||
$('#txtMinAudiobookResume', page).val(config.MinAudiobookResume);
|
||||
$('#txtMaxAudiobookResume', page).val(config.MaxAudiobookResume);
|
||||
$('#txtMinResumeDuration', page).val(config.MinResumeDurationSeconds);
|
||||
loading.hide();
|
||||
}
|
||||
|
@ -19,6 +21,8 @@ import Dashboard from '../../scripts/clientUtils';
|
|||
ApiClient.getServerConfiguration().then(function (config) {
|
||||
config.MinResumePct = $('#txtMinResumePct', form).val();
|
||||
config.MaxResumePct = $('#txtMaxResumePct', form).val();
|
||||
config.MinAudiobookResume = $('#txtMinAudiobookResume', form).val();
|
||||
config.MaxAudiobookResume = $('#txtMaxAudiobookResume', form).val();
|
||||
config.MinResumeDurationSeconds = $('#txtMinResumeDuration', form).val();
|
||||
|
||||
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
|
||||
|
|
|
@ -683,6 +683,8 @@
|
|||
"LabelManufacturer": "Manufacturer:",
|
||||
"LabelManufacturerUrl": "Manufacturer URL",
|
||||
"LabelMatchType": "Match type:",
|
||||
"LabelMaxAudiobookResume": "Maximum Audiobook resume in minutes:",
|
||||
"LabelMaxAudiobookResumeHelp": "Titles are assumed fully played if stopped after this time.",
|
||||
"LabelMaxBackdropsPerItem": "Maximum number of backdrops per item:",
|
||||
"LabelMaxChromecastBitrate": "Chromecast streaming quality:",
|
||||
"LabelMaxMuxingQueueSize": "Max muxing queue size:",
|
||||
|
@ -705,6 +707,8 @@
|
|||
"LabelMetadataSavers": "Metadata savers:",
|
||||
"LabelMetadataSaversHelp": "Choose the file formats to use when saving your metadata.",
|
||||
"LabelMethod": "Method:",
|
||||
"LabelMinAudiobookResume": "Minimum Audiobook resume in minutes:",
|
||||
"LabelMinAudiobookResumeHelp": "Titles are assumed unplayed if stopped before this time.",
|
||||
"LabelMinBackdropDownloadWidth": "Minimum backdrop download width:",
|
||||
"LabelMinResumeDuration": "Minimum resume duration:",
|
||||
"LabelMinResumeDurationHelp": "The shortest video length in seconds that will save playback location and let you resume.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue