Skip to content

Commit

Permalink
style: automatic eslint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <[email protected]>
  • Loading branch information
ferferga committed Sep 9, 2024
1 parent 19cc094 commit fcd3c8f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Playback/PlayerElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ watch(
if (
mediaElementRef.value
&& (!newUrl
|| playbackManager.currentMediaSource?.SupportsDirectPlay
|| !hls)
|| playbackManager.currentMediaSource?.SupportsDirectPlay
|| !hls)
) {
/**
* For the video case, Safari iOS doesn't support hls.js but supports native HLS.
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/library/[itemId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const recursive = computed(() =>
library.value.CollectionType === 'homevideos'
|| library.value.Type === 'Folder'
|| (library.value.Type === 'CollectionFolder'
&& !('CollectionType' in library.value))
&& !('CollectionType' in library.value))
? undefined
: true
);
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/store/playback-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class PlaybackManagerStore extends CommonStore<PlaybackManagerState> {
sub =>
sub.Type === MediaStreamType.Subtitle
&& (sub.DeliveryMethod === SubtitleDeliveryMethod.Encode
|| sub.DeliveryMethod === SubtitleDeliveryMethod.External)
|| sub.DeliveryMethod === SubtitleDeliveryMethod.External)
)
.map(sub => ({
label: sub.DisplayTitle ?? 'Undefined',
Expand Down Expand Up @@ -1217,9 +1217,9 @@ class PlaybackManagerStore extends CommonStore<PlaybackManagerState> {
oldVal.currentSubtitleStreamIndex
!== newVal.currentSubtitleStreamIndex
&& (oldVal.currentSubtitleTrack?.DeliveryMethod
=== SubtitleDeliveryMethod.Encode
|| newVal.currentSubtitleTrack?.DeliveryMethod
=== SubtitleDeliveryMethod.Encode)
=== SubtitleDeliveryMethod.Encode
|| newVal.currentSubtitleTrack?.DeliveryMethod
=== SubtitleDeliveryMethod.Encode)
) {
/**
* We need to set a new media source when:
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/store/player-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class PlayerElementStore extends CommonStore<PlayerElementState> {
!isNil(mimeType)
&& mimeType.startsWith('font/')
&& (mimeType.includes('ttf')
|| mimeType.includes('otf')
|| mimeType.includes('woff'))
|| mimeType.includes('otf')
|| mimeType.includes('woff'))
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ export function getCodecProfiles(

if (
(isTizen()
|| videoTestElement
.canPlayType('video/mp4; codecs="avc1.6e0033"')
.replace(/no/, '')) // TODO: These tests are passing in Safari, but playback is failing
&& (!isApple() || !isWebOS() || !(isEdge() && !isChromiumBased()))
|| videoTestElement
.canPlayType('video/mp4; codecs="avc1.6e0033"')
.replace(/no/, '')) // TODO: These tests are passing in Safari, but playback is failing
&& (!isApple() || !isWebOS() || !(isEdge() && !isChromiumBased()))
) {
h264Profiles += '|high 10';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export function getSupportedFmp4VideoCodecs(
if (
hasH264Support(videoTestElement)
&& (isChrome()
|| isFirefox()
|| isApple()
|| isEdge()
|| isTizen()
|| isWebOS())
|| isFirefox()
|| isApple()
|| isEdge()
|| isTizen()
|| isWebOS())
) {
codecs.push('h264');
}
Expand Down

0 comments on commit fcd3c8f

Please sign in to comment.