feat(anime): append queued episodes to mpv playlist

- Resolve queued streams immediately and cache subtitles in the background
- Attach prepared tracks as mpv advances through the playlist
This commit is contained in:
sudacode committed 2026-08-14 23:45:45 -07:00
1 parent 49271ba491
commit 9bff3f6b56
21 files changed
+660 -289

No files matched your search

+2 -2
View File
@@ -86,8 +86,8 @@ export function createEpisodeQueueControls(options: EpisodeQueueControlsOptions)
if (!anime) return;
const queued = isQueued(episode);
// Queueing behind nothing would wait for an end that never comes, so with
// an idle player the second option collapses into the first.
// With an idle player the second option still collapses into Play so the
// browser can report mpv's startup outcome before claiming success.
if (!queued) {
const playing = await capture(() => api.isPlaying());
if (playing.ok && !playing.value) {