fix remaining build errors

This commit is contained in:
2026-05-01 08:30:36 +03:00
parent 8886abf589
commit 2c317fb0ec
24 changed files with 90 additions and 64 deletions
+3 -2
View File
@@ -345,7 +345,7 @@ export default function PlayerPage() {
const fromQueue = searchParams.get('resume') === 'true'
if (showResumePromptPref && !fromQueue && pos > threshold) {
setResumePromptOpen(true)
resumePromptShownRef.current = item.Id
resumePromptShownRef.current = item.Id ?? null
}
}, [item?.Id, searchParams, showResumePromptPref])
@@ -986,7 +986,8 @@ export default function PlayerPage() {
if (resolvedSource?.SupportsDirectPlay) {
const el = (playerRef.current as { el?: HTMLElement } | null)?.el
const video = el?.querySelector('video') as HTMLVideoElement | null
const native = video.audioTracks as { length: number; [i: number]: { enabled: boolean } } | undefined
if (!video) return
const native = video.audioTracks as { length: number; [i: number]: { enabled: boolean; language?: string } } | undefined
if (native && native.length > 1) {
const target = audioTracks.find(t => t.Index === jfIndex)
const targetLang = (target?.Language || '').toLowerCase()