mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Interface for optional merging
(cherry picked from commit 654d4418e0c63073c58d15b56c466a84d3af22ab)
This commit is contained in:
parent
8aaea23619
commit
3dfd765f4b
3 changed files with 18 additions and 0 deletions
|
@ -475,6 +475,12 @@ export function setContentType(parent, contentType) {
|
|||
parent.querySelector('.trickplaySettingsSection').classList.toggle('hide', !hasChapterOptions);
|
||||
parent.querySelector('.chapterSettingsSection').classList.toggle('hide', !hasChapterOptions);
|
||||
|
||||
if (contentType === 'tvshows' || contentType === 'movies' || contentType === 'musicvideos') {
|
||||
parent.querySelector('.chkEnableVersionGroupingContainer').classList.remove('hide');
|
||||
} else {
|
||||
parent.querySelector('.chkEnableVersionGroupingContainer').classList.add('hide');
|
||||
}
|
||||
|
||||
if (contentType === 'tvshows') {
|
||||
parent.querySelector('.chkAutomaticallyGroupSeriesContainer').classList.remove('hide');
|
||||
parent.querySelector('.fldSeasonZeroDisplayName').classList.remove('hide');
|
||||
|
@ -635,6 +641,7 @@ export function getLibraryOptions(parent) {
|
|||
EnableInternetProviders: true,
|
||||
SaveLocalMetadata: parent.querySelector('#chkSaveLocal').checked,
|
||||
EnableAutomaticSeriesGrouping: parent.querySelector('.chkAutomaticallyGroupSeries').checked,
|
||||
EnableVersionGrouping: parent.querySelector('.chkEnableVersionGrouping').checked,
|
||||
PreferredMetadataLanguage: parent.querySelector('#selectLanguage').value,
|
||||
MetadataCountryCode: parent.querySelector('#selectCountry').value,
|
||||
SeasonZeroDisplayName: parent.querySelector('#txtSeasonZeroName').value,
|
||||
|
@ -707,6 +714,7 @@ export function setLibraryOptions(parent, options) {
|
|||
parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction;
|
||||
parent.querySelector('#chkSaveLocal').checked = options.SaveLocalMetadata;
|
||||
parent.querySelector('.chkAutomaticallyGroupSeries').checked = options.EnableAutomaticSeriesGrouping;
|
||||
parent.querySelector('.chkEnableVersionGrouping').checked = options.EnableVersionGrouping;
|
||||
parent.querySelector('#chkEnableEmbeddedTitles').checked = options.EnableEmbeddedTitles;
|
||||
parent.querySelector('.chkEnableEmbeddedExtrasTitlesContainer').classList.toggle('hide', !options.EnableEmbeddedTitles);
|
||||
parent.querySelector('#chkEnableEmbeddedExtrasTitles').checked = options.EnableEmbeddedExtrasTitles;
|
||||
|
|
|
@ -112,6 +112,14 @@
|
|||
<div class="fieldDescription checkboxFieldDescription">${OptionAutomaticallyGroupSeriesHelp}</div>
|
||||
</div>
|
||||
|
||||
<div class="checkboxContainer checkboxContainer-withDescription chkEnableVersionGroupingContainer hide advanced">
|
||||
<label>
|
||||
<input is="emby-checkbox" type="checkbox" class="chkEnableVersionGrouping" />
|
||||
<span>${OptionEnableVersionGrouping}</span>
|
||||
</label>
|
||||
<div class="fieldDescription checkboxFieldDescription">${OptionEnableVersionGroupingHelp}</div>
|
||||
</div>
|
||||
|
||||
<div class="mediaSegmentProviders advanced hide" style="margin-bottom: 2em;">
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1237,6 +1237,8 @@
|
|||
"OptionAllowVideoPlaybackTranscoding": "Allow video playback that requires transcoding",
|
||||
"OptionAutomaticallyGroupSeries": "Automatically merge series that are spread across multiple folders",
|
||||
"OptionAutomaticallyGroupSeriesHelp": "Series that are spread across multiple folders within this library will be automatically merged into a single series.",
|
||||
"OptionEnableVersionGrouping": "Automatically group different versions of episodes or movies",
|
||||
"OptionEnableVersionGroupingHelp": "Grouping happens according to naming rules described in the docs.",
|
||||
"OptionBluray": "BD",
|
||||
"OptionCommunityRating": "Community Rating",
|
||||
"OptionCriticRating": "Critics Rating",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue