diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 59fb12dc28..13c4ffd8da 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -2,7 +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 { getItems } from '../../utils/jellyfin-apiclient/getItems.ts'; import NotificationIcon from './notificationicon.png'; @@ -131,7 +131,7 @@ function onLibraryChanged(data, apiClient) { 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) getItems(apiClient, apiClient.getCurrentUserId(), { diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 4894f4dbd3..6088ad821d 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -12,7 +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'; +import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts'; const UNLIMITED_ITEMS = -1; @@ -127,7 +127,7 @@ function getItemsForPlayback(serverId, query) { query.EnableTotalRecordCount = 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) return getItems(apiClient, apiClient.getCurrentUserId(), query); } diff --git a/src/plugins/chromecastPlayer/plugin.js b/src/plugins/chromecastPlayer/plugin.js index 121add1339..ebc682cbb1 100644 --- a/src/plugins/chromecastPlayer/plugin.js +++ b/src/plugins/chromecastPlayer/plugin.js @@ -6,7 +6,7 @@ import castSenderApiLoader from './castSenderApi'; import ServerConnections from '../../components/ServerConnections'; import alert from '../../components/alert'; 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 @@ -482,7 +482,7 @@ function getItemsForPlayback(apiClient, query) { query.ExcludeLocationTypes = 'Virtual'; 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) return getItems(apiClient, userId, query); } diff --git a/src/plugins/syncPlay/core/Helper.js b/src/plugins/syncPlay/core/Helper.js index 701af96c7e..364217e980 100644 --- a/src/plugins/syncPlay/core/Helper.js +++ b/src/plugins/syncPlay/core/Helper.js @@ -4,7 +4,7 @@ */ import Events from '../../../utils/events.ts'; -import { getItems } from '../../../utils/jellyfin-apiclient/getItemsHelper.ts'; +import { getItems } from '../../../utils/jellyfin-apiclient/getItems.ts'; /** * Constants @@ -89,7 +89,7 @@ export function getItemsForPlayback(apiClient, query) { query.EnableTotalRecordCount = 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) return getItems(apiClient, apiClient.getCurrentUserId(), query); } diff --git a/src/utils/jellyfin-apiclient/getItemsHelper.ts b/src/utils/jellyfin-apiclient/getItems.ts similarity index 100% rename from src/utils/jellyfin-apiclient/getItemsHelper.ts rename to src/utils/jellyfin-apiclient/getItems.ts