1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4382 from Shadowghost/dummy-chapter

This commit is contained in:
Joshua M. Boniface 2023-05-30 10:46:25 -04:00 committed by GitHub
commit db9899dc27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 15 deletions

View file

@ -68,7 +68,6 @@ function loadPage(page) {
page.querySelector('#selectLanguage').value = config.PreferredMetadataLanguage || ''; page.querySelector('#selectLanguage').value = config.PreferredMetadataLanguage || '';
page.querySelector('#selectCountry').value = config.MetadataCountryCode || ''; page.querySelector('#selectCountry').value = config.MetadataCountryCode || '';
page.querySelector('#valDummyChapterDuration').value = config.DummyChapterDuration || ''; page.querySelector('#valDummyChapterDuration').value = config.DummyChapterDuration || '';
page.querySelector('#valDummyChapterCount').value = config.DummyChapterCount || '';
page.querySelector('#txtChapterImageResolution').value = config.ChapterImageResolution || ''; page.querySelector('#txtChapterImageResolution').value = config.ChapterImageResolution || '';
loading.hide(); loading.hide();
}); });
@ -81,7 +80,6 @@ function onSubmit() {
config.PreferredMetadataLanguage = form.querySelector('#selectLanguage').value; config.PreferredMetadataLanguage = form.querySelector('#selectLanguage').value;
config.MetadataCountryCode = form.querySelector('#selectCountry').value; config.MetadataCountryCode = form.querySelector('#selectCountry').value;
config.DummyChapterDuration = form.querySelector('#valDummyChapterDuration').value; config.DummyChapterDuration = form.querySelector('#valDummyChapterDuration').value;
config.DummyChapterCount = form.querySelector('#valDummyChapterCount').value;
config.ChapterImageResolution = form.querySelector('#txtChapterImageResolution').value; config.ChapterImageResolution = form.querySelector('#txtChapterImageResolution').value;
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult); ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
}); });

View file

@ -22,13 +22,9 @@
<div class="verticalSection"> <div class="verticalSection">
<h2>${HeaderDummyChapter}</h2> <h2>${HeaderDummyChapter}</h2>
<div class="inputContainer"> <div class="inputContainer">
<input is="emby-input" type="number" id="valDummyChapterDuration" label="${LabelDummyChapterDuration}" min="1"></input> <input is="emby-input" type="number" id="valDummyChapterDuration" label="${LabelDummyChapterDuration}" min="0"></input>
<div class="fieldDescription">${LabelDummyChapterDurationHelp}</div> <div class="fieldDescription">${LabelDummyChapterDurationHelp}</div>
</div> </div>
<div class="inputContainer">
<input is="emby-input" type="number" id="valDummyChapterCount" label="${LabelDummyChapterCount}" min="0"></input>
<div class="fieldDescription">${LabelDummyChapterCountHelp}</div>
</div>
<div class="selectContainer"> <div class="selectContainer">
<select is="emby-select" id="txtChapterImageResolution" label="${LabelChapterImageResolution}"></select> <select is="emby-select" id="txtChapterImageResolution" label="${LabelChapterImageResolution}"></select>
<div class="fieldDescription"> <div class="fieldDescription">

View file

@ -630,14 +630,12 @@
"LabelDroppedFrames": "Dropped frames", "LabelDroppedFrames": "Dropped frames",
"LabelDropShadow": "Drop shadow", "LabelDropShadow": "Drop shadow",
"LabelDropSubtitleHere": "Drop subtitle here, or click to browse.", "LabelDropSubtitleHere": "Drop subtitle here, or click to browse.",
"LabelDummyChapterDuration": "Interval", "LabelDummyChapterDuration": "Interval:",
"LabelDummyChapterDurationHelp": "The chapter image extraction interval in seconds.", "LabelDummyChapterDurationHelp": "The interval between dummy chapters. Set to 0 to disable dummy chapter generation. Changing this will have no effect on existing dummy chapters.",
"LabelDummyChapterCount": "Limit", "LabelChapterImageResolution": "Resolution:",
"LabelDummyChapterCountHelp": "The maximum number of chapter images that will be extracted for each media file.", "LabelChapterImageResolutionHelp": "The resolution of the extracted chapter images. Changing this will have no effect on existing dummy chapters.",
"LabelChapterImageResolution": "Resolution", "LabelDynamicExternalId": "{0} Id:",
"LabelChapterImageResolutionHelp": "The resolution of the extracted chapter images.", "LabelEasyPinCode": "Easy PIN code:",
"LabelDynamicExternalId": "{0} Id",
"LabelEasyPinCode": "Easy PIN code",
"LabelEmbedAlbumArtDidl": "Embed album art in DIDL", "LabelEmbedAlbumArtDidl": "Embed album art in DIDL",
"LabelEmbedAlbumArtDidlHelp": "Some devices prefer this method for getting the album art. Others may fail to play with this option enabled.", "LabelEmbedAlbumArtDidlHelp": "Some devices prefer this method for getting the album art. Others may fail to play with this option enabled.",
"LabelEnableAudioVbr": "Enable VBR audio encoding", "LabelEnableAudioVbr": "Enable VBR audio encoding",