From 2c5a80383999ba22ed17aa03d7bc0d9b06c6ee36 Mon Sep 17 00:00:00 2001 From: sudacode Date: Fri, 12 Jun 2026 01:25:26 -0700 Subject: [PATCH] fix(main): remove obsolete subtitle delay handler wiring --- src/main.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/main.ts b/src/main.ts index 615bbcb1..638ec8d6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5200,26 +5200,6 @@ const appendClipboardVideoToQueueHandler = createAppendClipboardVideoToQueueHand appendClipboardVideoToQueueMainDeps, ); -const shiftSubtitleDelayToAdjacentCueHandler = createShiftSubtitleDelayToAdjacentCueHandler({ - getMpvClient: () => appState.mpvClient, - loadSubtitleSourceText, - sendMpvCommand: (command) => sendMpvCommandRuntime(appState.mpvClient, command), - onSubtitleDelayShifted: (delaySeconds) => { - const key = activeJellyfinSubtitleDelayKey; - if (!key) return; - const saved = saveJellyfinSubtitleDelay({ - filePath: JELLYFIN_SUBTITLE_DELAYS_PATH, - itemId: key.itemId, - streamIndex: key.streamIndex, - delaySeconds, - }); - if (!saved) { - logger.warn('Failed to save Jellyfin subtitle delay.'); - } - }, - showMpvOsd: (text) => showConfiguredPlaybackFeedback(text), -}); - async function dispatchSessionAction(request: SessionActionDispatchRequest): Promise { await dispatchSessionActionCore(request, { toggleStatsOverlay: () =>