fix(anime): clean up discarded queued subtitles in background

- Let queued episode discard return before subtitle preparation finishes
- Remove the redundant queued subtitle loading command
This commit is contained in:
2026-08-15 21:44:51 -07:00
parent 935e4c145f
commit 333ee5eea4
4 changed files with 21 additions and 9 deletions
-1
View File
@@ -65,7 +65,6 @@ test('queued playback carries file-local title and language preferences into mpv
),
);
assert.deepEqual(buildQueuedPlaybackCommands(options), [
['script-message', 'subminer-managed-subtitles-loading'],
[
'loadfile',
'https://video.example/episode.m3u8',
+1 -4
View File
@@ -126,10 +126,7 @@ export function buildPlaybackCommands(options: BuildPlaybackOptions): MpvCommand
/** Append a fully resolved stream without replacing the file playing now. */
export function buildQueuedPlaybackCommands(options: BuildPlaybackOptions): MpvCommand[] {
return [
['script-message', 'subminer-managed-subtitles-loading'],
['loadfile', options.stream.url, 'append-play', -1, buildQueuedLoadfileOptions(options)],
];
return [['loadfile', options.stream.url, 'append-play', -1, buildQueuedLoadfileOptions(options)]];
}
/**