increase timeout
This commit is contained in:
parent
c7ed471d54
commit
4081c72edd
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user