mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-11 05:57:07 +03:00
Don't include chapters in time without skips
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user