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
This commit is contained in:
theMasterpc 2024-09-16 00:51:29 +03:00 committed by GitHub
parent 7a8fded38f
commit e7aafd9dca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
}