From 71d4eeadbad63a04959f5f708ad9062adf8cac4f Mon Sep 17 00:00:00 2001 From: Joe Rogers <1337joe@gmail.com> Date: Tue, 11 Jan 2022 22:28:18 +0100 Subject: [PATCH] Expose collection generation options for mixed libraries Pass "mixed" instead of "" for library type "Other" --- src/components/libraryoptionseditor/libraryoptionseditor.js | 2 +- src/components/mediaLibraryCreator/mediaLibraryCreator.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/libraryoptionseditor/libraryoptionseditor.js b/src/components/libraryoptionseditor/libraryoptionseditor.js index 252b8b6dfc..d73f7233b5 100644 --- a/src/components/libraryoptionseditor/libraryoptionseditor.js +++ b/src/components/libraryoptionseditor/libraryoptionseditor.js @@ -411,7 +411,7 @@ import template from './libraryoptionseditor.template.html'; parent.querySelector('.chkEnableEmbeddedEpisodeInfosContainer').classList.add('hide'); } - parent.querySelector('.chkAutomaticallyAddToCollectionContainer').classList.toggle('hide', contentType !== 'movies'); + parent.querySelector('.chkAutomaticallyAddToCollectionContainer').classList.toggle('hide', contentType !== 'movies' && contentType !== 'mixed'); return populateMetadataSettings(parent, contentType); } diff --git a/src/components/mediaLibraryCreator/mediaLibraryCreator.js b/src/components/mediaLibraryCreator/mediaLibraryCreator.js index 72795f66f1..3126ed00af 100644 --- a/src/components/mediaLibraryCreator/mediaLibraryCreator.js +++ b/src/components/mediaLibraryCreator/mediaLibraryCreator.js @@ -73,7 +73,7 @@ import template from './mediaLibraryCreator.template.html'; $('#selectCollectionType', page).html(getCollectionTypeOptionsHtml(collectionTypeOptions)).val('').on('change', function () { const value = this.value; const dlg = $(this).parents('.dialog')[0]; - libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), value == 'mixed' ? '' : value); + libraryoptionseditor.setContentType(dlg.querySelector('.libraryOptions'), value); if (value) { dlg.querySelector('.libraryOptions').classList.remove('hide');