1
0
Fork 0
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:
Jendrik Weise 2025-01-19 12:08:50 +01:00 committed by mammo0
parent 8aaea23619
commit 3dfd765f4b
3 changed files with 18 additions and 0 deletions

View file

@ -475,6 +475,12 @@ export function setContentType(parent, contentType) {
parent.querySelector('.trickplaySettingsSection').classList.toggle('hide', !hasChapterOptions); parent.querySelector('.trickplaySettingsSection').classList.toggle('hide', !hasChapterOptions);
parent.querySelector('.chapterSettingsSection').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') { if (contentType === 'tvshows') {
parent.querySelector('.chkAutomaticallyGroupSeriesContainer').classList.remove('hide'); parent.querySelector('.chkAutomaticallyGroupSeriesContainer').classList.remove('hide');
parent.querySelector('.fldSeasonZeroDisplayName').classList.remove('hide'); parent.querySelector('.fldSeasonZeroDisplayName').classList.remove('hide');
@ -635,6 +641,7 @@ export function getLibraryOptions(parent) {
EnableInternetProviders: true, EnableInternetProviders: true,
SaveLocalMetadata: parent.querySelector('#chkSaveLocal').checked, SaveLocalMetadata: parent.querySelector('#chkSaveLocal').checked,
EnableAutomaticSeriesGrouping: parent.querySelector('.chkAutomaticallyGroupSeries').checked, EnableAutomaticSeriesGrouping: parent.querySelector('.chkAutomaticallyGroupSeries').checked,
EnableVersionGrouping: parent.querySelector('.chkEnableVersionGrouping').checked,
PreferredMetadataLanguage: parent.querySelector('#selectLanguage').value, PreferredMetadataLanguage: parent.querySelector('#selectLanguage').value,
MetadataCountryCode: parent.querySelector('#selectCountry').value, MetadataCountryCode: parent.querySelector('#selectCountry').value,
SeasonZeroDisplayName: parent.querySelector('#txtSeasonZeroName').value, SeasonZeroDisplayName: parent.querySelector('#txtSeasonZeroName').value,
@ -707,6 +714,7 @@ export function setLibraryOptions(parent, options) {
parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction; parent.querySelector('.chkExtractChapterImages').checked = options.EnableChapterImageExtraction;
parent.querySelector('#chkSaveLocal').checked = options.SaveLocalMetadata; parent.querySelector('#chkSaveLocal').checked = options.SaveLocalMetadata;
parent.querySelector('.chkAutomaticallyGroupSeries').checked = options.EnableAutomaticSeriesGrouping; parent.querySelector('.chkAutomaticallyGroupSeries').checked = options.EnableAutomaticSeriesGrouping;
parent.querySelector('.chkEnableVersionGrouping').checked = options.EnableVersionGrouping;
parent.querySelector('#chkEnableEmbeddedTitles').checked = options.EnableEmbeddedTitles; parent.querySelector('#chkEnableEmbeddedTitles').checked = options.EnableEmbeddedTitles;
parent.querySelector('.chkEnableEmbeddedExtrasTitlesContainer').classList.toggle('hide', !options.EnableEmbeddedTitles); parent.querySelector('.chkEnableEmbeddedExtrasTitlesContainer').classList.toggle('hide', !options.EnableEmbeddedTitles);
parent.querySelector('#chkEnableEmbeddedExtrasTitles').checked = options.EnableEmbeddedExtrasTitles; parent.querySelector('#chkEnableEmbeddedExtrasTitles').checked = options.EnableEmbeddedExtrasTitles;

View file

@ -112,6 +112,14 @@
<div class="fieldDescription checkboxFieldDescription">${OptionAutomaticallyGroupSeriesHelp}</div> <div class="fieldDescription checkboxFieldDescription">${OptionAutomaticallyGroupSeriesHelp}</div>
</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 class="mediaSegmentProviders advanced hide" style="margin-bottom: 2em;">
</div> </div>

View file

@ -1237,6 +1237,8 @@
"OptionAllowVideoPlaybackTranscoding": "Allow video playback that requires transcoding", "OptionAllowVideoPlaybackTranscoding": "Allow video playback that requires transcoding",
"OptionAutomaticallyGroupSeries": "Automatically merge series that are spread across multiple folders", "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.", "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", "OptionBluray": "BD",
"OptionCommunityRating": "Community Rating", "OptionCommunityRating": "Community Rating",
"OptionCriticRating": "Critics Rating", "OptionCriticRating": "Critics Rating",