mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 20:17:05 +03:00
Fix doubling up segments in multi segment skip notice
This commit is contained in:
@@ -611,7 +611,8 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?:
|
|||||||
|
|
||||||
for (const segment of skipInfo.array) {
|
for (const segment of skipInfo.array) {
|
||||||
if (shouldAutoSkip(segment) &&
|
if (shouldAutoSkip(segment) &&
|
||||||
segment.segment[0] >= skipTime[0] && segment.segment[1] <= skipTime[1]) {
|
segment.segment[0] >= skipTime[0] && segment.segment[1] <= skipTime[1]
|
||||||
|
&& segment.segment[0] === segment.scheduledTime) { // Don't include artifical scheduled segments (end times for mutes)
|
||||||
skippingSegments.push(segment);
|
skippingSegments.push(segment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user