mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix too long URLs on getItems with many ids
This commit is contained in:
parent
5e51616e18
commit
d5e9541010
6 changed files with 80 additions and 4 deletions
|
@ -2,6 +2,7 @@ import serverNotifications from '../../scripts/serverNotifications';
|
|||
import { playbackManager } from '../playback/playbackmanager';
|
||||
import Events from '../../utils/events.ts';
|
||||
import globalize from '../../scripts/globalize';
|
||||
import { getItems } from '../../utils/jellyfin-apiclient/getItemsHelper.ts';
|
||||
|
||||
import NotificationIcon from './notificationicon.png';
|
||||
|
||||
|
@ -130,7 +131,9 @@ function onLibraryChanged(data, apiClient) {
|
|||
newItems.length = 12;
|
||||
}
|
||||
|
||||
apiClient.getItems(apiClient.getCurrentUserId(), {
|
||||
// call getItems from getItemsHelper instead of apiClient.getItems()
|
||||
// to split up into multiple requests if necessary (URL might get too long)
|
||||
getItems(apiClient, apiClient.getCurrentUserId(), {
|
||||
|
||||
Recursive: true,
|
||||
Limit: 3,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue