feat: preload alternate mode source on episode load

This commit is contained in:
2026-06-14 21:19:59 +02:00
parent 5dcf39c401
commit 20aadd36f8
3 changed files with 83 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import type { SkipSegment } from "../types";
import { resolveActiveSegments, renderSegments } from "../skip/segments";
import { updateSubtitleOptions } from "../subtitles";
import { updateQualityOptions } from "../quality";
import { updateModeButtons } from "../mode";
import { hydrateAlternateMode, updateModeButtons } from "../mode";
import { updateOverlay, isAutoplayEnabled, switchEpisodeRange } from "./ui";
import { markEpisodeTransition } from "../progress";
import { safeLocalStorage } from "../storage";
@@ -105,6 +105,7 @@ export const goToNextEpisode = async (): Promise<void> => {
updateQualityOptions();
updateModeButtons();
updateOverlay(state.currentEpisode, data.episode_title ?? "");
void hydrateAlternateMode();
// update skip segments
if (data.segments?.length) {