mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 07:57:09 +03:00
Fix skipping two segments at the same time for auto skip on music videos
This commit is contained in:
@@ -1212,7 +1212,7 @@ function getNextSkipIndex(currentTime: number, includeIntersectingSegments: bool
|
|||||||
|
|
||||||
const autoSkipSorter = (segment: ScheduledTime) => {
|
const autoSkipSorter = (segment: ScheduledTime) => {
|
||||||
const skipOption = utils.getCategorySelection(segment.category)?.option;
|
const skipOption = utils.getCategorySelection(segment.category)?.option;
|
||||||
if (skipOption === CategorySkipOption.AutoSkip
|
if ((skipOption === CategorySkipOption.AutoSkip || shouldAutoSkip(segment))
|
||||||
&& segment.actionType === ActionType.Skip) {
|
&& segment.actionType === ActionType.Skip) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (skipOption !== CategorySkipOption.ShowOverlay) {
|
} else if (skipOption !== CategorySkipOption.ShowOverlay) {
|
||||||
|
|||||||
Reference in New Issue
Block a user