Don't include mutes in time without skips

This commit is contained in:
caneleex
2022-11-18 20:50:05 +01:00
parent b40749717f
commit 87d1522c41

View File

@@ -1396,12 +1396,12 @@ function updatePreviewBar(): void {
if (Config.config.showTimeWithSkips) {
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
.filter(({actionType}) => actionType !== ActionType.Chapter)
.filter(({actionType}) => ![ActionType.Mute, ActionType.Chapter].includes(actionType))
.map(({segment}) => segment));
showTimeWithoutSkips(skippedDuration);
}
// Update last video id
lastPreviewBarUpdate = sponsorVideoID;
}