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,7 +1396,7 @@ function updatePreviewBar(): void {
if (Config.config.showTimeWithSkips) { if (Config.config.showTimeWithSkips) {
const skippedDuration = utils.getTimestampsDuration(previewBarSegments const skippedDuration = utils.getTimestampsDuration(previewBarSegments
.filter(({actionType}) => actionType !== ActionType.Chapter) .filter(({actionType}) => ![ActionType.Mute, ActionType.Chapter].includes(actionType))
.map(({segment}) => segment)); .map(({segment}) => segment));
showTimeWithoutSkips(skippedDuration); showTimeWithoutSkips(skippedDuration);