Commit Graph
22 Commits
Author SHA1 Message Date
sudacode 24b25287bd fix(subsync): harden manual requests, error output, and track reload
- validate reference files (absolute regular file, size cap) before reading
- redact stream tokens and truncate tool output in failure messages
- keep title and lang when re-adding the synced track
- ignore an external audio track's ff-index when mapping the video's audio
- report discarded stale auto results, bound manual offsets, yield between alignments
- update stale subsync docs, fix markdown formatting, discover subtitle tests by lane
2026-11-28 03:15:35 -08:00
sudacode 71bea8b4d6 fix(subsync): drop stale results when the media file is replaced mid-run
- Check the media file signature again after embedded extraction and drop candidates extracted from a file that was replaced
- Skip publishing the manual picker and auto-sync results if the local file changed during analysis
- Make the tests stricter about stale picker payloads and about ffmpeg calls for cached tracks
2026-11-27 17:32:58 -08:00
sudacode 71d8d9148c fix(subsync): guard embedded track cache against replaced media files
- Capture the file signature before an individual embedded retry and skip caching if the file changed mid-extraction
- Keep cached embedded tracks when the combined single-pass rip fails on a broken track
- Expose getCachedEmbeddedSubtitles and getMediaFileSignature helpers
2026-11-27 17:18:27 -08:00
sudacode ac693be359 perf(subsync): cache retried local embedded tracks across runs
- Add cacheEmbeddedSubtitleTrack to store non-empty individually extracted
  embedded tracks in the single-pass cache for local media
- Picker no longer skips embedded extraction just because a combined pass
  ran, so omitted and zero-event tracks get retried and evaluated
- Later auto-sync runs and picker opens reuse cached retries without
  spawning ffmpeg again
2026-11-27 17:07:15 -08:00
sudacode 69fae42110 fix(subsync): retry omitted and empty batch tracks on local media
- Treat zero-event pre-extracted embedded tracks as missing so they get extracted again one at a time
- Stop skipping embedded extraction on local files just because a combined batch ran, so tracks the batch left out are retried
- Add a test that checks only the failed tracks are retried and that usable batch entries are not extracted again
2026-11-27 11:40:40 -08:00
sudacode 593af920c3 fix(subsync): retry zero-event embedded tracks from combined pass
- Treat batch entries that come back with no subtitle events as missing, so they get retried on their own instead of being skipped
- Tests now check the ffmpeg call order for omitted-track and empty-entry retries
- Apply-error test now forces a sub-add failure and checks the exact OSD message
2026-11-27 09:44:23 -08:00
sudacode 8f87640e4d fix(subsync): retry embedded tracks omitted from partial combined pass
- Remote auto-sync now retries each ranked embedded track individually when the combined ffmpeg pass fails or returns a partial map
- Errors from applying an alignment during the individual fallback now reach the user instead of being swallowed
- Manual alass no longer requires ffmpeg up front, and the Jellyfin path now passes fetchImpl through
- Tests clean up their temp dirs and add coverage for partial batches, external references and apply errors
2026-11-27 00:20:50 -08:00
sudacode 768d3b6a8f fix(subsync): harden auto-sync fallbacks and temp cleanup
- Keep sampled-audio misalignment verdicts when escalated full audio is unavailable
- Try remaining remote embedded tracks one at a time in rank order when the combined rip fails
- Skip the ffmpeg requirement for alass when the reference is fetched over HTTP
- Remove temp dirs when subtitle extraction or write fails
- Build Jellyfin subtitle URLs on the media origin so double-slash paths can't redirect the ApiKey
2026-11-26 22:57:49 -08:00
sudacode 584dfa3608 perf(subsync): avoid streaming remote media for embedded references
- Fetch embedded Jellyfin subtitle tracks through the Subtitles Stream endpoint instead of running ffmpeg over the HTTP stream
- Try external references before extracting embedded tracks on remote streams, and skip embedded extraction when opening the picker
- Run the sampled-audio fast path before the full MKV demux when a non-signs external or sidecar reference exists
- Escalate to a single-pass embedded and audio rip only when sampled verification is inconclusive
2026-11-26 22:07:13 -08:00
sudacode 904eccc4e7 fix(subsync): read subtitle delay before final playback session check 2026-11-25 21:19:06 -08:00
sudacode 58c0dfaed2 fix(subsync): stage external output and harden path and encoding guards 2026-11-25 21:00:32 -08:00
sudacode fc113cfbca fix(subsync): address PR review findings and deterministic CI check 2026-11-25 20:17:25 -08:00
sudacode 05bdb64880 feat(subsync): integrate built-in automatic subtitle syncing 2026-11-25 19:47:56 -08:00
sudacode b48083ddd8 test: cut low-value tests, rewrite the rest around behavior, parallelize lanes (#285) 2026-10-05 00:07:44 -07:00
sudacode 5b8848518a feat(subsync): add reference and target subtitle track picker (#181) 2026-08-03 01:00:14 -07:00
sudacode b1bdeabca8 fix(jellyfin): show overlay, inject plugin, and fix stats title on playback (#77)
* fix(jellyfin): show overlay, inject plugin, and fix stats title on playb

- Show visible overlay automatically during Jellyfin playback so subtitleStyle applies
- Inject bundled mpv plugin on auto-launch so keybindings work without overlay focus
- Group Jellyfin playback stats under item metadata (jellyfin://host/item/id) instead of stream URLs so episodes merge with matching local titles
- Mark ffsubsync unavailable in subsync modal for remote media paths
- Drain queued second-instance commands even when onReady throws

* fix(overlay): stabilize macOS focus handoff and sidebar Yomitan pause

- Keep overlay visible during macOS foreground probe after overlay blur
- Hold sidebar hover-pause while a Yomitan lookup popup remains open

* fix(jellyfin): fix discovery loop, device identity, tray state, and Disc

- Derive device identity from OS hostname; remove legacy configurable client/device fields
- Prevent discovery playback from reloading active item, misreporting pause state, and duplicate overlay restores
- Restart stale tray discovery sessions without re-login when server drops SubMiner cast target
- Sync tray discovery checkbox state on Linux after CLI/startup/remote-session changes
- Stop Discord presence falling back to stream URLs; prime title before tokenized stream loads
- Fix picker library discovery when log level is above info
- Fix config.example.jsonc trailing commas and array formatting

* docs(release): trim and consolidate prerelease notes for 0.15.0

- Remove breaking changes section and several redundant bullet points
- Consolidate per-platform updater notes into a single entry
- Normalize em-dash separators to hyphens in section headers

* fix(config): remove trailing commas from config.example.jsonc

- Strip trailing commas throughout both config.example.jsonc copies
- Reformat inline arrays to multi-line for JSON strictness
- Update Jellyfin subtitle preload and playback launch tests and impl

* fix(tokenizer): preserve known-word highlight when POS filters suppress

- Known-word cache matches now set isKnown=true even for tokens excluded by POS filters
- POS exclusion gate suppresses N+1, frequency, and JLPT only; known status is computed before the gate
- Jellyfin subtitle preload continues after cleanup failures instead of aborting
- Update config docs and option description to document the known-word bypass behavior

* fix(jellyfin): send explicit hide/show overlay instead of toggle

- Track overlay visibility in plugin state; y-t uses explicit hide/show commands when state is known
- Prevent paused Jellyfin playback from resuming on overlay hide
- Fix subtitle cache cleanup to only remove dirs after successful cleanup

* fix(jellyfin): fix remote progress sync, seek reporting, and startup sto

- arm active playback before loadfile with loadedMediaPath: null to suppress premature stop events
- force immediate progress report on seek-like position jumps at the mpv time-pos level
- send positionTicks and failed=false in reportStopped payload
- remove EventName from HTTP timeline payloads (websocket-only field)
- add startup grace window to drop stop events before media finishes loading

* fix(jellyfin): fix overlay toggle sync, redirect reload, and AppImage bi

- Sync visible-overlay state back to plugin via script messages to avoid toggle/hide drift
- Collapse duplicate toggle events within 250ms to prevent hide-then-show on single keypress
- Preserve manual hide across Jellyfin path-changing redirects even when media-title drops
- Rearm managed subtitle defaults on path-changing redirects
- Route toggleVisibleOverlay session binding through plugin toggle instead of app-side IPC
- Show Linux/Hyprland overlay passively (showInactive) to avoid stealing mpv keyboard focus
- Fix AppImage binary resolution to prefer $APPIMAGE env over mounted inner binary
- Add stats window layer management so delete/update dialogs appear above stats window
- Fix Jellyfin remote progress sync during Linux websocket reconnect windows

* Fix CodeRabbit review feedback

* fix(jellyfin): subtitle timing, resume progress, and overlay sync

- Add per-stream subtitle delay persistence and auto timeline-offset correction
- Strip server-selected subtitle stream from mpv load URL; suppress plugin subtitle rearm and auto-start during app-managed preload
- Fix resume position lost when mpv resets on stop; use last known position for final progress/stopped reports
- Keep Play vs Resume distinct to avoid early seek race on normal play
- Fix discovery resume when remote play sends StartPositionTicks=0 despite saved progress
- Deduplicate show/hide overlay commands using recorded visibility state
- Rewrite docs-site Jellyfin page around cast-to-device UX

* test: update lifecycle cleanup assertion

* fix: clear aborted playback state, fix overlay passthrough, and guard du

- Reset app_managed_playback_pending on lifecycle cleanup to prevent state leak into next item
- Record visible overlay action only after command succeeds, not before
- Non-native passive overlay now always click-through on re-show (fix isNonNativePassiveOverlay ordering)
- Defer activeParsedSubtitleMediaPath assignment until after prefetch completes
- Move autoplay gate release into the hide branch of toggleVisibleOverlay
- Clear active Jellyfin playback when stopping media that never loaded
- Reset managed subtitle delay and delay key when no external tracks are available
- Await async removeDir in subtitle cache cleanup
- Guard duplicate delete clicks in MediaDetailView and SessionsTab with refs
- Escape key in DeleteConfirmDialog now calls stopPropagation and stopImmediatePropagation
2026-05-24 18:40:56 -07:00
sudacode dc52bc2fba feat(config): add configuration window (#70) 2026-05-21 04:16:21 -07:00
sudacode 7514985feb [codex] Make Windows mpv shortcut self-contained (#40) 2026-04-03 21:35:18 -07:00
sudacode c799a8de3c Prepare Windows release and signing process (#16) 2026-03-08 19:51:30 -07:00
sudacode e18985fb14 Enhance AniList character dictionary sync and subtitle features (#15) 2026-03-07 18:30:59 -08:00
sudacode 10ef535f9a feat(subsync): add replace option and deterministic retimed naming 2026-03-03 00:26:31 -08:00
sudacode d3fd47f0ec feat(core): add Electron runtime, services, and app composition 2026-02-22 21:43:43 -08:00