From 4081c72eddb23f7bb7623c9051e9248a7f5d9264 Mon Sep 17 00:00:00 2001 From: rlauuzo <46294892+rlauuzo@users.noreply.github.com> Date: Sun, 7 Jul 2024 07:37:56 +0200 Subject: [PATCH] increase timeout --- ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js index 9984e48..34187e2 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/inject.js @@ -264,7 +264,7 @@ introSkipper.doSkip = introSkipper.throttle(async function () { // Check if the next episode actually starts loading const nextEpisodeLoaded = await Promise.race([ new Promise(resolve => introSkipper.videoPlayer.addEventListener('loadstart', () => resolve(true), { once: true })), - new Promise(resolve => setTimeout(() => resolve(false), 100)) + new Promise(resolve => setTimeout(() => resolve(false), 300)) ]); // If the next episode didn't load, just seek to the end of the current segment if (!nextEpisodeLoaded) await seekToSegmentEnd();