From 89b7cb0230c134df21c486c8529406e24d33f7bc Mon Sep 17 00:00:00 2001 From: Ajay Date: Fri, 10 Jan 2025 03:29:04 -0500 Subject: [PATCH] Fix audio glitch when chapter boundary passes Fixes #1596 --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 887f8632b..0b075450c 100644 --- a/src/content.ts +++ b/src/content.ts @@ -757,7 +757,8 @@ async function startSponsorSchedule(includeIntersectingSegments = false, current skippingFunction(currentTime); } else { let delayTime = timeUntilSponsor * 1000 * (1 / getVideo().playbackRate); - if (delayTime < (isFirefoxOrSafari() && !isSafari() ? 750 : 300)) { + if (delayTime < (isFirefoxOrSafari() && !isSafari() ? 750 : 300) + && shouldAutoSkip(skippingSegments[0])) { let forceStartIntervalTime: number | null = null; if (isFirefoxOrSafari() && !isSafari() && delayTime > 300) { forceStartIntervalTime = await waitForNextTimeChange();