mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Replace library option to AutomaticallyAddToCollection
Signed-off-by: Petrus.Z <silencly07@gmail.com>
This commit is contained in:
parent
213fe8fb17
commit
0a57d9358f
4 changed files with 11 additions and 11 deletions
|
@ -411,7 +411,7 @@ import template from './libraryoptionseditor.template.html';
|
||||||
parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide');
|
parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
parent.querySelector('.chkAutoCollectionContainer').classList.toggle('hide', contentType !== 'movies');
|
parent.querySelector('.chkAutomaticallyAddToCollectionContainer').classList.toggle('hide', contentType !== 'movies');
|
||||||
|
|
||||||
return populateMetadataSettings(parent, contentType);
|
return populateMetadataSettings(parent, contentType);
|
||||||
}
|
}
|
||||||
|
@ -513,7 +513,7 @@ import template from './libraryoptionseditor.template.html';
|
||||||
SkipSubtitlesIfAudioTrackMatches: parent.querySelector('#chkSkipIfAudioTrackPresent').checked,
|
SkipSubtitlesIfAudioTrackMatches: parent.querySelector('#chkSkipIfAudioTrackPresent').checked,
|
||||||
SaveSubtitlesWithMedia: parent.querySelector('#chkSaveSubtitlesLocally').checked,
|
SaveSubtitlesWithMedia: parent.querySelector('#chkSaveSubtitlesLocally').checked,
|
||||||
RequirePerfectSubtitleMatch: parent.querySelector('#chkRequirePerfectMatch').checked,
|
RequirePerfectSubtitleMatch: parent.querySelector('#chkRequirePerfectMatch').checked,
|
||||||
AutoCollection: parent.querySelector('#chkAutoCollection').checked,
|
AutoCollection: parent.querySelector('#chkAutomaticallyAddToCollection').checked,
|
||||||
MetadataSavers: Array.prototype.map.call(Array.prototype.filter.call(parent.querySelectorAll('.chkMetadataSaver'), elem => {
|
MetadataSavers: Array.prototype.map.call(Array.prototype.filter.call(parent.querySelectorAll('.chkMetadataSaver'), elem => {
|
||||||
return elem.checked;
|
return elem.checked;
|
||||||
}), elem => {
|
}), elem => {
|
||||||
|
@ -565,7 +565,7 @@ import template from './libraryoptionseditor.template.html';
|
||||||
parent.querySelector('#chkSaveSubtitlesLocally').checked = options.SaveSubtitlesWithMedia;
|
parent.querySelector('#chkSaveSubtitlesLocally').checked = options.SaveSubtitlesWithMedia;
|
||||||
parent.querySelector('#chkSkipIfAudioTrackPresent').checked = options.SkipSubtitlesIfAudioTrackMatches;
|
parent.querySelector('#chkSkipIfAudioTrackPresent').checked = options.SkipSubtitlesIfAudioTrackMatches;
|
||||||
parent.querySelector('#chkRequirePerfectMatch').checked = options.RequirePerfectSubtitleMatch;
|
parent.querySelector('#chkRequirePerfectMatch').checked = options.RequirePerfectSubtitleMatch;
|
||||||
parent.querySelector('#chkAutoCollection').checked = options.AutoCollection;
|
parent.querySelector('#chkAutomaticallyAddToCollection').checked = options.AutomaticallyAddToCollection;
|
||||||
Array.prototype.forEach.call(parent.querySelectorAll('.chkMetadataSaver'), elem => {
|
Array.prototype.forEach.call(parent.querySelectorAll('.chkMetadataSaver'), elem => {
|
||||||
elem.checked = options.MetadataSavers ? options.MetadataSavers.includes(elem.getAttribute('data-pluginname')) : elem.getAttribute('data-defaultenabled') === 'true';
|
elem.checked = options.MetadataSavers ? options.MetadataSavers.includes(elem.getAttribute('data-pluginname')) : elem.getAttribute('data-defaultenabled') === 'true';
|
||||||
});
|
});
|
||||||
|
|
|
@ -39,12 +39,12 @@
|
||||||
<div class="fieldDescription checkboxFieldDescription">${LabelEnableRealtimeMonitorHelp}</div>
|
<div class="fieldDescription checkboxFieldDescription">${LabelEnableRealtimeMonitorHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="checkboxContainer checkboxContainer-withDescription chkAutoCollectionContainer hide advanced">
|
<div class="checkboxContainer checkboxContainer-withDescription chkAutomaticallyAddToCollectionContainer hide advanced">
|
||||||
<label>
|
<label>
|
||||||
<input is="emby-checkbox" type="checkbox" id="chkAutoCollection" checked />
|
<input is="emby-checkbox" type="checkbox" id="chkAutomaticallyAddToCollection" checked />
|
||||||
<span>${LabelAutoCollection}</span>
|
<span>${LabelAutomaticallyAddToCollection}</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="fieldDescription checkboxFieldDescription">${LabelAutoCollectionHelp}</div>
|
<div class="fieldDescription checkboxFieldDescription">${LabelAutomaticallyAddToCollectionHelp}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="metadataReaders hide advanced" style="margin-bottom: 2em;">
|
<div class="metadataReaders hide advanced" style="margin-bottom: 2em;">
|
||||||
|
|
|
@ -533,8 +533,8 @@
|
||||||
"LabelAudioLanguagePreference": "Preferred audio language:",
|
"LabelAudioLanguagePreference": "Preferred audio language:",
|
||||||
"LabelAudioSampleRate": "Audio sample rate:",
|
"LabelAudioSampleRate": "Audio sample rate:",
|
||||||
"LabelAuthProvider": "Authentication Provider:",
|
"LabelAuthProvider": "Authentication Provider:",
|
||||||
"LabelAutoCollection": "Auto create collection",
|
"LabelAutomaticallyAddToCollection": "Automatically add to collection",
|
||||||
"LabelAutoCollectionHelp": "When at least 2 movies in the library have the same collection name, the collection will be automatically created",
|
"LabelAutomaticallyAddToCollectionHelp": "When at least 2 movies have the same collection name, they will be automatically added to the collection",
|
||||||
"LabelAutoDiscoveryTracing": "Enable Auto Discovery tracing.",
|
"LabelAutoDiscoveryTracing": "Enable Auto Discovery tracing.",
|
||||||
"LabelAutoDiscoveryTracingHelp": "When enabled, packets received on the auto discovery port will be logged.",
|
"LabelAutoDiscoveryTracingHelp": "When enabled, packets received on the auto discovery port will be logged.",
|
||||||
"LabelAutomaticallyRefreshInternetMetadataEvery": "Automatically refresh metadata from the internet:",
|
"LabelAutomaticallyRefreshInternetMetadataEvery": "Automatically refresh metadata from the internet:",
|
||||||
|
|
|
@ -402,8 +402,8 @@
|
||||||
"LabelArtists": "艺术家:",
|
"LabelArtists": "艺术家:",
|
||||||
"LabelArtistsHelp": "将多个艺术家用分号分隔。",
|
"LabelArtistsHelp": "将多个艺术家用分号分隔。",
|
||||||
"LabelAudioLanguagePreference": "首选音频语言:",
|
"LabelAudioLanguagePreference": "首选音频语言:",
|
||||||
"LabelAutoCollection": "自动创建合集",
|
"LabelAutomaticallyAddToCollection": "自动添加到合集",
|
||||||
"LabelAutoCollectionHelp": "当库中至少有2个电影拥有相同的合集名称时,将自动创建合集",
|
"LabelAutomaticallyAddToCollectionHelp": "当至少有2个电影拥有相同的合集名称时,它们将会自动添加到合集中",
|
||||||
"LabelAutomaticallyRefreshInternetMetadataEvery": "自动从互联网获取元数据并刷新:",
|
"LabelAutomaticallyRefreshInternetMetadataEvery": "自动从互联网获取元数据并刷新:",
|
||||||
"LabelBindToLocalNetworkAddress": "监听的本地网络地址:",
|
"LabelBindToLocalNetworkAddress": "监听的本地网络地址:",
|
||||||
"LabelBindToLocalNetworkAddressHelp": "覆盖 HTTP 服务器绑定的本地 IP 地址。如果留空,服务器将会监听所有可用的地址。重启后生效。",
|
"LabelBindToLocalNetworkAddressHelp": "覆盖 HTTP 服务器绑定的本地 IP 地址。如果留空,服务器将会监听所有可用的地址。重启后生效。",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue