mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fix doubling up segments in multi segment skip notice
This commit is contained in:
parent
901dbb1ecf
commit
b43e3dab71
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue