mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-28 04:46:07 -08:00
fix(subsync): close remaining cancellation and install races from review
- treat a cancelled run as a changed session at every commit point (writes, delay resets, track loads, picker), so nothing lands after a media switch - fail the secondary track load when the baseline track list cannot be read - keep the cross-filesystem install atomic by staging next to the target - register old temp dirs mpv still plays from so they are pruned later - no detected speech in the combined pass means no audio reference - start the align worker synchronously so a call cannot post to a stale worker
This commit is contained in:
6 files changed
+80
-24
No files matched your search
@@ -526,7 +526,8 @@ export async function prepareRipCandidatesAndAudio(
|
||||
});
|
||||
if (rip) {
|
||||
return {
|
||||
audioSpeech: rip.audioSpeech,
|
||||
// No detected speech means no usable audio reference (keeps the no-audio fallbacks).
|
||||
audioSpeech: rip.audioSpeech && rip.audioSpeech.spans.length > 0 ? rip.audioSpeech : null,
|
||||
sampledAudioWindows: null,
|
||||
preExtractedEmbedded: rip.embeddedSubtitles,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user