Fix issue with fetching media libraries on non-admin accounts

This commit is contained in:
HighImKevin
2025-11-21 08:01:00 -05:00
parent f2b6dd0ec9
commit 0a3503fbe3
+1 -1
View File
@@ -236,7 +236,7 @@
getWatchlistItems: async function(options = {}, useCache = false) {
// First fetch the Library Items that contain items of the supported types from ApiClient.getJSON(ApiClient.getUrl("Library/MediaFolders"))
const libraryItems = await ApiClient.getJSON(ApiClient.getUrl("Library/MediaFolders"));
const libraryItems = await ApiClient.getItems();
// We now want to include the library items with ColletionType "tvshows", or "movies"
const supportedLibraryItems = libraryItems.Items.filter(item => item.CollectionType === 'tvshows' || item.CollectionType === 'movies');