mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-31 11:56:40 +03:00
@@ -993,7 +993,7 @@ function getNextSkipIndex(currentTime: number, includeIntersectingSegments: bool
|
|||||||
function getLatestEndTimeIndex(sponsorTimes: SponsorTime[], index: number, hideHiddenSponsors = true): number {
|
function getLatestEndTimeIndex(sponsorTimes: SponsorTime[], index: number, hideHiddenSponsors = true): number {
|
||||||
// Only combine segments for AutoSkip
|
// Only combine segments for AutoSkip
|
||||||
if (index == -1 ||
|
if (index == -1 ||
|
||||||
shouldAutoSkip(sponsorTimes[index])) return index;
|
!shouldAutoSkip(sponsorTimes[index])) return index;
|
||||||
|
|
||||||
// Default to the normal endTime
|
// Default to the normal endTime
|
||||||
let latestEndTimeIndex = index;
|
let latestEndTimeIndex = index;
|
||||||
|
|||||||
Reference in New Issue
Block a user