Don't include chapters in time without skips

This commit is contained in:
Ajay
2022-08-28 23:47:27 -04:00
parent 3550c168e2
commit 34c4ecf940

View File

@@ -1259,7 +1259,9 @@ function updatePreviewBar(): void {
updateActiveSegment(video.currentTime);
if (Config.config.showTimeWithSkips) {
const skippedDuration = utils.getTimestampsDuration(previewBarSegments.map(({segment}) => segment));
const skippedDuration = utils.getTimestampsDuration(previewBarSegments
.filter(({actionType}) => actionType !== ActionType.Chapter)
.map(({segment}) => segment));
showTimeWithoutSkips(skippedDuration);
}