Merge pull request #1595 from caneleex/patch/time-mutes

Don't include mutes in time without skips
This commit is contained in:
Ajay Ramachandran
2022-11-29 18:48:13 -05:00
committed by GitHub

View File

@@ -1455,7 +1455,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);