Fix eslint errors
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ export enum CardShape {
|
||||
Mixed = 'mixed',
|
||||
MixedSquare = 'mixedSquare',
|
||||
MixedBackdrop = 'mixedBackdrop',
|
||||
MixedPortrait = 'mixedPortrait',
|
||||
MixedPortrait = 'mixedPortrait'
|
||||
}
|
||||
|
||||
export function getSquareShape(enableOverflow = true) {
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { MediaSourceInfo } from '@jellyfin/sdk/lib/generated-client';
|
||||
* @param mediaSource The media source.
|
||||
* @returns _true_ if the media source is an HLS stream, _false_ otherwise.
|
||||
*/
|
||||
export function isHls(mediaSource: MediaSourceInfo|null|undefined): boolean {
|
||||
export function isHls(mediaSource: MediaSourceInfo | null | undefined): boolean {
|
||||
return mediaSource?.TranscodingSubProtocol?.toUpperCase() === 'HLS'
|
||||
|| mediaSource?.Container?.toUpperCase() === 'HLS';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user