diff --git a/src/components/documentManager.ts b/src/components/documentManager.ts index 44684f09..f4212876 100644 --- a/src/components/documentManager.ts +++ b/src/components/documentManager.ts @@ -511,6 +511,7 @@ export abstract class DocumentManager { * @param item - source for the displayed name */ private static setDisplayName(item: BaseItemDto): void { + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const name: string = item.EpisodeTitle ?? item.Name!; let displayName: string = name; diff --git a/src/components/maincontroller.ts b/src/components/maincontroller.ts index ede46fc5..5a25232b 100644 --- a/src/components/maincontroller.ts +++ b/src/components/maincontroller.ts @@ -414,6 +414,7 @@ export function setSubtitleStreamIndex( const mediaStreams = state.PlaybackMediaSource?.MediaStreams; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const subtitleStream = getStreamByIndex(mediaStreams!, 'Subtitle', index); if (!subtitleStream) { diff --git a/src/helpers.ts b/src/helpers.ts index ad4f0f47..291ac32d 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -325,6 +325,7 @@ export function createStreamInfo( playerStartPositionTicks = startPosition ?? 0; } else { // TODO deal with !TranscodingUrl + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion mediaUrl = JellyfinApi.createUrl(mediaSource.TranscodingUrl!); if (isHlsStream(mediaSource)) { @@ -365,6 +366,7 @@ export function createStreamInfo( contentType = `audio/${mediaSource.TranscodingContainer}`; // TODO deal with !TranscodingUrl + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion mediaUrl = JellyfinApi.createUrl(mediaSource.TranscodingUrl!); } }