mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Rename getItemsHelper.ts to getItems.ts
This commit is contained in:
parent
e693724055
commit
1a069b49be
5 changed files with 8 additions and 8 deletions
|
@ -2,7 +2,7 @@ import serverNotifications from '../../scripts/serverNotifications';
|
||||||
import { playbackManager } from '../playback/playbackmanager';
|
import { playbackManager } from '../playback/playbackmanager';
|
||||||
import Events from '../../utils/events.ts';
|
import Events from '../../utils/events.ts';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import { getItems } from '../../utils/jellyfin-apiclient/getItemsHelper.ts';
|
import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts';
|
||||||
|
|
||||||
import NotificationIcon from './notificationicon.png';
|
import NotificationIcon from './notificationicon.png';
|
||||||
|
|
||||||
|
@ -131,7 +131,7 @@ function onLibraryChanged(data, apiClient) {
|
||||||
newItems.length = 12;
|
newItems.length = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
// call getItems from getItemsHelper instead of apiClient.getItems()
|
// call getItems from jellyfin-apiclient/getItems.ts instead of apiClient.getItems()
|
||||||
// to split up into multiple requests if necessary (URL might get too long)
|
// to split up into multiple requests if necessary (URL might get too long)
|
||||||
getItems(apiClient, apiClient.getCurrentUserId(), {
|
getItems(apiClient, apiClient.getCurrentUserId(), {
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import Screenfull from 'screenfull';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import alert from '../alert';
|
import alert from '../alert';
|
||||||
import { includesAny } from '../../utils/container.ts';
|
import { includesAny } from '../../utils/container.ts';
|
||||||
import { getItems } from '../../utils/jellyfin-apiclient/getItemsHelper.ts';
|
import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts';
|
||||||
|
|
||||||
const UNLIMITED_ITEMS = -1;
|
const UNLIMITED_ITEMS = -1;
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ function getItemsForPlayback(serverId, query) {
|
||||||
query.EnableTotalRecordCount = false;
|
query.EnableTotalRecordCount = false;
|
||||||
query.CollapseBoxSetItems = false;
|
query.CollapseBoxSetItems = false;
|
||||||
|
|
||||||
// call getItems from getItemsHelper instead of apiClient.getItems()
|
// call getItems from jellyfin-apiclient/getItems.ts instead of apiClient.getItems()
|
||||||
// to split up into multiple requests if necessary (URL might get too long)
|
// to split up into multiple requests if necessary (URL might get too long)
|
||||||
return getItems(apiClient, apiClient.getCurrentUserId(), query);
|
return getItems(apiClient, apiClient.getCurrentUserId(), query);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ import castSenderApiLoader from './castSenderApi';
|
||||||
import ServerConnections from '../../components/ServerConnections';
|
import ServerConnections from '../../components/ServerConnections';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
import Events from '../../utils/events.ts';
|
import Events from '../../utils/events.ts';
|
||||||
import { getItems } from '../../utils/jellyfin-apiclient/getItemsHelper.ts';
|
import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts';
|
||||||
|
|
||||||
// Based on https://github.com/googlecast/CastVideos-chrome/blob/master/CastVideos.js
|
// Based on https://github.com/googlecast/CastVideos-chrome/blob/master/CastVideos.js
|
||||||
|
|
||||||
|
@ -482,7 +482,7 @@ function getItemsForPlayback(apiClient, query) {
|
||||||
query.ExcludeLocationTypes = 'Virtual';
|
query.ExcludeLocationTypes = 'Virtual';
|
||||||
query.EnableTotalRecordCount = false;
|
query.EnableTotalRecordCount = false;
|
||||||
|
|
||||||
// call getItems from getItemsHelper instead of apiClient.getItems()
|
// call getItems from jellyfin-apiclient/getItems.ts instead of apiClient.getItems()
|
||||||
// to split up into multiple requests if necessary (URL might get too long)
|
// to split up into multiple requests if necessary (URL might get too long)
|
||||||
return getItems(apiClient, userId, query);
|
return getItems(apiClient, userId, query);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Events from '../../../utils/events.ts';
|
import Events from '../../../utils/events.ts';
|
||||||
import { getItems } from '../../../utils/jellyfin-apiclient/getItemsHelper.ts';
|
import { getItems } from '../../../utils/jellyfin-apiclient/getItems.ts';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants
|
* Constants
|
||||||
|
@ -89,7 +89,7 @@ export function getItemsForPlayback(apiClient, query) {
|
||||||
query.EnableTotalRecordCount = false;
|
query.EnableTotalRecordCount = false;
|
||||||
query.CollapseBoxSetItems = false;
|
query.CollapseBoxSetItems = false;
|
||||||
|
|
||||||
// call getItems from getItemsHelper instead of apiClient.getItems()
|
// call getItems from jellyfin-apiclient/getItems.ts instead of apiClient.getItems()
|
||||||
// to split up into multiple requests if necessary (URL might get too long)
|
// to split up into multiple requests if necessary (URL might get too long)
|
||||||
return getItems(apiClient, apiClient.getCurrentUserId(), query);
|
return getItems(apiClient, apiClient.getCurrentUserId(), query);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue