1
0
Fork 0
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:
Merlin Danner 2023-02-09 03:14:48 +01:00 committed by dann-merlin
parent 5e51616e18
commit d5e9541010
6 changed files with 80 additions and 4 deletions

View file

@ -12,6 +12,7 @@ import Screenfull from 'screenfull';
import ServerConnections from '../ServerConnections';
import alert from '../alert';
import { includesAny } from '../../utils/container.ts';
import { getItems } from '../../utils/jellyfin-apiclient/getItemsHelper.ts';
const UNLIMITED_ITEMS = -1;
@ -126,7 +127,9 @@ function getItemsForPlayback(serverId, query) {
query.EnableTotalRecordCount = false;
query.CollapseBoxSetItems = false;
return apiClient.getItems(apiClient.getCurrentUserId(), query);
// call getItems from getItemsHelper instead of apiClient.getItems()
// to split up into multiple requests if necessary (URL might get too long)
return getItems(apiClient, apiClient.getCurrentUserId(), query);
}
}