mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Chapter Images:
- chapter image extraction intervals, limit count and resolutions can be set by the user from the server general settings;
This commit is contained in:
parent
2ba0c22df0
commit
18ae1dc17f
3 changed files with 44 additions and 1 deletions
|
@ -15,11 +15,26 @@ import alert from '../../components/alert';
|
|||
page.querySelector('#txtServerName').value = systemInfo.ServerName;
|
||||
page.querySelector('#txtCachePath').value = systemInfo.CachePath || '';
|
||||
page.querySelector('#chkQuickConnectAvailable').checked = config.QuickConnectAvailable === true;
|
||||
page.querySelector('#valDummyChapterDuration').value = config.DummyChapterDuration;
|
||||
page.querySelector('#valDummyChapterCount').value = config.DummyChapterCount;
|
||||
$('#txtMetadataPath', page).val(systemInfo.InternalMetadataPath || '');
|
||||
$('#txtMetadataNetworkPath', page).val(systemInfo.MetadataNetworkPath || '');
|
||||
$('#selectLocalizationLanguage', page).html(languageOptions.map(function (language) {
|
||||
return '<option value="' + language.Value + '">' + language.Name + '</option>';
|
||||
})).val(config.UICulture);
|
||||
page.querySelector('#txtChapterImageResolution').value = config.ChapterImageResolution;
|
||||
$('#txtChapterImageResolution', page).html([
|
||||
{name: "Match Source", value: "Match Source"},
|
||||
{name: "2160p", value: "P2160"},
|
||||
{name: "1440p", value: "P1440"},
|
||||
{name: "1080p", value: "P1080"},
|
||||
{name: "720p", value: "P720"},
|
||||
{name: "480p", value: "P480"},
|
||||
{name: "360p", value: "P360"},
|
||||
{name: "240p", value: "P240"}
|
||||
].map(function (resolution) {
|
||||
return '<option value="' + resolution.value + '">' + resolution.name + '</option>';
|
||||
})).val(config.ChapterImageResolution);
|
||||
|
||||
loading.hide();
|
||||
}
|
||||
|
@ -35,6 +50,9 @@ import alert from '../../components/alert';
|
|||
config.MetadataPath = $('#txtMetadataPath', form).val();
|
||||
config.MetadataNetworkPath = $('#txtMetadataNetworkPath', form).val();
|
||||
config.QuickConnectAvailable = form.querySelector('#chkQuickConnectAvailable').checked;
|
||||
config.DummyChapterDuration = $('#valDummyChapterDuration', form).val();
|
||||
config.DummyChapterCount = $('#valDummyChapterCount', form).val();
|
||||
config.ChapterImageResolution = $('#txtChapterImageResolution', form).val();
|
||||
ApiClient.updateServerConfiguration(config).then(function() {
|
||||
ApiClient.getNamedConfiguration(brandingConfigKey).then(function(brandingConfig) {
|
||||
brandingConfig.LoginDisclaimer = form.querySelector('#txtLoginDisclaimer').value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue