Fix doubling up segments in multi segment skip notice

This commit is contained in:
Ajay 2022-09-15 21:54:03 -04:00
parent 901dbb1ecf
commit b43e3dab71

View file

@ -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);
} }
} }