From 0a3503fbe3b2458d226570b08a3ccd4aab93ea61 Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Fri, 21 Nov 2025 08:01:00 -0500 Subject: [PATCH] Fix issue with fetching media libraries on non-admin accounts --- scripts/apiHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/apiHelper.js b/scripts/apiHelper.js index 3a4099b..282c00d 100644 --- a/scripts/apiHelper.js +++ b/scripts/apiHelper.js @@ -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');