increase timeout

This commit is contained in:
rlauuzo 2024-07-07 07:37:56 +02:00 committed by GitHub
parent c7ed471d54
commit 4081c72edd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,7 +264,7 @@ introSkipper.doSkip = introSkipper.throttle(async function () {
// Check if the next episode actually starts loading // Check if the next episode actually starts loading
const nextEpisodeLoaded = await Promise.race([ const nextEpisodeLoaded = await Promise.race([
new Promise(resolve => introSkipper.videoPlayer.addEventListener('loadstart', () => resolve(true), { once: true })), 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 the next episode didn't load, just seek to the end of the current segment
if (!nextEpisodeLoaded) await seekToSegmentEnd(); if (!nextEpisodeLoaded) await seekToSegmentEnd();