From 0f9122aa1c317e57bf3ac64c7c3f44aa095191b1 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 19 Jul 2022 23:27:32 -0400 Subject: [PATCH] Fix skipping two segments at the same time for auto skip on music videos --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 9d7f7cde..1d352188 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1212,7 +1212,7 @@ function getNextSkipIndex(currentTime: number, includeIntersectingSegments: bool const autoSkipSorter = (segment: ScheduledTime) => { const skipOption = utils.getCategorySelection(segment.category)?.option; - if (skipOption === CategorySkipOption.AutoSkip + if ((skipOption === CategorySkipOption.AutoSkip || shouldAutoSkip(segment)) && segment.actionType === ActionType.Skip) { return 0; } else if (skipOption !== CategorySkipOption.ShowOverlay) {