From e7aafd9dca42353daccb56ed811b0cc9b104f9ce Mon Sep 17 00:00:00 2001 From: theMasterpc <97434762+dredstone1@users.noreply.github.com> Date: Mon, 16 Sep 2024 00:51:29 +0300 Subject: [PATCH] fix mixed library doesnt show in checkbox (#288) * fix mixed library wont show * now it works * Refactor library selection UI to include more options * small fix * another small fix * adding a line between the more checkbox. small fixes * fixes * fixing, when there isn't any libraries in the "more" section show regular checkbox list * Update configPage.html * returning to the second commit, with some changes, now using "Library/VirtualFolders" * small fix --- .../Configuration/configPage.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index a86605b..fc7ccdc 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -845,8 +845,8 @@ } async function populateLibraries() { - const response = await getJson("Library/MediaFolders"); - const tvLibraries = response.Items.filter(item => item.CollectionType === "tvshows"); + const response = await getJson("Library/VirtualFolders"); + const tvLibraries = response.filter(item => item.CollectionType === undefined || item.CollectionType === "tvshows"); const libraryNames = tvLibraries.map(lib => lib.Name || 'Unnamed Library'); generateCheckboxList(libraryNames, 'libraryCheckboxes', 'SelectedLibraries'); }