mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-12 05:16:19 -07:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user