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:
parent
7a8fded38f
commit
e7aafd9dca
@ -845,8 +845,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function populateLibraries() {
|
async function populateLibraries() {
|
||||||
const response = await getJson("Library/MediaFolders");
|
const response = await getJson("Library/VirtualFolders");
|
||||||
const tvLibraries = response.Items.filter(item => item.CollectionType === "tvshows");
|
const tvLibraries = response.filter(item => item.CollectionType === undefined || item.CollectionType === "tvshows");
|
||||||
const libraryNames = tvLibraries.map(lib => lib.Name || 'Unnamed Library');
|
const libraryNames = tvLibraries.map(lib => lib.Name || 'Unnamed Library');
|
||||||
generateCheckboxList(libraryNames, 'libraryCheckboxes', 'SelectedLibraries');
|
generateCheckboxList(libraryNames, 'libraryCheckboxes', 'SelectedLibraries');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user