use PascalCase for api_key parameter
This commit is contained in:
+2
-3
@@ -351,13 +351,12 @@ export default tseslint.config(
|
|||||||
leadingUnderscore: 'allowSingleOrDouble',
|
leadingUnderscore: 'allowSingleOrDouble',
|
||||||
trailingUnderscore: 'allowSingleOrDouble'
|
trailingUnderscore: 'allowSingleOrDouble'
|
||||||
},
|
},
|
||||||
// Ignore numbers, locale strings (en-us), aria/data attributes, CSS selectors,
|
// Ignore numbers, locale strings (en-us), aria/data attributes and CSS selectors
|
||||||
// and api_key parameter
|
|
||||||
{
|
{
|
||||||
selector: [ 'objectLiteralProperty', 'typeProperty' ],
|
selector: [ 'objectLiteralProperty', 'typeProperty' ],
|
||||||
format: null,
|
format: null,
|
||||||
filter: {
|
filter: {
|
||||||
regex: '[ &\\-]|^([0-9]+)$|^api_key$',
|
regex: '[ &\\-]|^([0-9]+)$',
|
||||||
match: true
|
match: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -314,7 +314,7 @@ function getAudioStreamUrl(item, transcodingProfile, directPlayContainers, apiCl
|
|||||||
AudioCodec: transcodingProfile.AudioCodec,
|
AudioCodec: transcodingProfile.AudioCodec,
|
||||||
MaxAudioSampleRate: maxValues.maxAudioSampleRate,
|
MaxAudioSampleRate: maxValues.maxAudioSampleRate,
|
||||||
MaxAudioBitDepth: maxValues.maxAudioBitDepth,
|
MaxAudioBitDepth: maxValues.maxAudioBitDepth,
|
||||||
api_key: apiClient.accessToken(),
|
ApiKey: apiClient.accessToken(),
|
||||||
PlaySessionId: startingPlaySession,
|
PlaySessionId: startingPlaySession,
|
||||||
StartTimeTicks: startPosition || 0,
|
StartTimeTicks: startPosition || 0,
|
||||||
EnableRedirection: true,
|
EnableRedirection: true,
|
||||||
@@ -2826,7 +2826,7 @@ export class PlaybackManager {
|
|||||||
Static: true,
|
Static: true,
|
||||||
mediaSourceId: mediaSource.Id,
|
mediaSourceId: mediaSource.Id,
|
||||||
deviceId: apiClient.deviceId(),
|
deviceId: apiClient.deviceId(),
|
||||||
api_key: apiClient.accessToken()
|
ApiKey: apiClient.accessToken()
|
||||||
};
|
};
|
||||||
|
|
||||||
if (mediaSource.ETag) {
|
if (mediaSource.ETag) {
|
||||||
|
|||||||
@@ -1523,7 +1523,7 @@ export default function (view) {
|
|||||||
const offsetY = -(tileOffsetY * trickplayInfo.Height);
|
const offsetY = -(tileOffsetY * trickplayInfo.Height);
|
||||||
|
|
||||||
const imgSrc = apiClient.getUrl('Videos/' + item.Id + '/Trickplay/' + trickplayInfo.Width + '/' + index + '.jpg', {
|
const imgSrc = apiClient.getUrl('Videos/' + item.Id + '/Trickplay/' + trickplayInfo.Width + '/' + index + '.jpg', {
|
||||||
api_key: apiClient.accessToken(),
|
ApiKey: apiClient.accessToken(),
|
||||||
MediaSourceId: mediaSourceId
|
MediaSourceId: mediaSourceId
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1277,7 +1277,7 @@ export class HtmlVideoPlayer {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', {
|
const fallbackFontList = apiClient.getUrl('/FallbackFont/Fonts', {
|
||||||
api_key: apiClient.accessToken()
|
ApiKey: apiClient.accessToken()
|
||||||
});
|
});
|
||||||
const htmlVideoPlayer = this;
|
const htmlVideoPlayer = this;
|
||||||
import('@jellyfin/libass-wasm').then(({ default: SubtitlesOctopus }) => {
|
import('@jellyfin/libass-wasm').then(({ default: SubtitlesOctopus }) => {
|
||||||
@@ -1327,7 +1327,7 @@ export class HtmlVideoPlayer {
|
|||||||
apiClient.getJSON(fallbackFontList).then((fontFiles = []) => {
|
apiClient.getJSON(fallbackFontList).then((fontFiles = []) => {
|
||||||
fontFiles.forEach(font => {
|
fontFiles.forEach(font => {
|
||||||
const fontUrl = apiClient.getUrl(`/FallbackFont/Fonts/${encodeURIComponent(font.Name)}`, {
|
const fontUrl = apiClient.getUrl(`/FallbackFont/Fonts/${encodeURIComponent(font.Name)}`, {
|
||||||
api_key: apiClient.accessToken()
|
ApiKey: apiClient.accessToken()
|
||||||
});
|
});
|
||||||
availableFonts.push(fontUrl);
|
availableFonts.push(fontUrl);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user