diff --git a/src/utils/mediaSource.ts b/src/utils/mediaSource.ts index 2ee56bfc03..5b11ee3967 100644 --- a/src/utils/mediaSource.ts +++ b/src/utils/mediaSource.ts @@ -6,9 +6,6 @@ import type { MediaSourceInfo } from '@jellyfin/sdk/lib/generated-client'; * @returns _true_ if the media source is an HLS stream, _false_ otherwise. */ export function isHls(mediaSource: MediaSourceInfo|null|undefined): boolean { - if (mediaSource?.TranscodingSubProtocol?.toUpperCase() === 'HLS') { - return true; - } - - return mediaSource?.Container?.toUpperCase() === 'HLS'; + return mediaSource?.TranscodingSubProtocol?.toUpperCase() === 'HLS' + || mediaSource?.Container?.toUpperCase() === 'HLS'; }