diff --git a/eslint.config.mjs b/eslint.config.mjs index 90e3594c1..03a04c84e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -351,13 +351,12 @@ export default tseslint.config( leadingUnderscore: 'allowSingleOrDouble', trailingUnderscore: 'allowSingleOrDouble' }, - // Ignore numbers, locale strings (en-us), aria/data attributes, CSS selectors, - // and api_key parameter + // Ignore numbers, locale strings (en-us), aria/data attributes and CSS selectors { selector: [ 'objectLiteralProperty', 'typeProperty' ], format: null, filter: { - regex: '[ &\\-]|^([0-9]+)$|^api_key$', + regex: '[ &\\-]|^([0-9]+)$', match: true } } diff --git a/src/components/playback/playbackmanager.js b/src/components/playback/playbackmanager.js index 8d2de7d5d..e8a1095b6 100644 --- a/src/components/playback/playbackmanager.js +++ b/src/components/playback/playbackmanager.js @@ -314,7 +314,7 @@ function getAudioStreamUrl(item, transcodingProfile, directPlayContainers, apiCl AudioCodec: transcodingProfile.AudioCodec, MaxAudioSampleRate: maxValues.maxAudioSampleRate, MaxAudioBitDepth: maxValues.maxAudioBitDepth, - api_key: apiClient.accessToken(), + ApiKey: apiClient.accessToken(), PlaySessionId: startingPlaySession, StartTimeTicks: startPosition || 0, EnableRedirection: true, @@ -2826,7 +2826,7 @@ export class PlaybackManager { Static: true, mediaSourceId: mediaSource.Id, deviceId: apiClient.deviceId(), - api_key: apiClient.accessToken() + ApiKey: apiClient.accessToken() }; if (mediaSource.ETag) { diff --git a/src/controllers/playback/video/index.js b/src/controllers/playback/video/index.js index c0be4c579..deaeb6002 100644 --- a/src/controllers/playback/video/index.js +++ b/src/controllers/playback/video/index.js @@ -1523,7 +1523,7 @@ export default function (view) { const offsetY = -(tileOffsetY * trickplayInfo.Height); const imgSrc = apiClient.getUrl('Videos/' + item.Id + '/Trickplay/' + trickplayInfo.Width + '/' + index + '.jpg', { - api_key: apiClient.accessToken(), + ApiKey: apiClient.accessToken(), MediaSourceId: mediaSourceId }); diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index b647c5dcb..920fd5baa 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1277,7 +1277,7 @@ export class HtmlVideoPlayer { } }); const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', { - api_key: apiClient.accessToken() + ApiKey: apiClient.accessToken() }); const htmlVideoPlayer = this; import('@jellyfin/libass-wasm').then(({ default: SubtitlesOctopus }) => { @@ -1327,7 +1327,7 @@ export class HtmlVideoPlayer { apiClient.getJSON(fallbackFontList).then((fontFiles = []) => { fontFiles.forEach(font => { const fontUrl = apiClient.getUrl(`/FallbackFont/Fonts/${encodeURIComponent(font.Name)}`, { - api_key: apiClient.accessToken() + ApiKey: apiClient.accessToken() }); availableFonts.push(fontUrl); });